move implementation to cc

This commit is contained in:
Ben Burdette 2020-04-15 10:09:43 -06:00
parent adf03b0b8e
commit 057e5b6b2e
2 changed files with 6 additions and 4 deletions

View file

@ -8,6 +8,11 @@ namespace nix
std::optional<string> ErrorInfo::programName = std::nullopt;
std::ostream& operator<<(std::ostream &os, const hintformat &hf)
{
return os << hf.str();
}
string showErrPos(const ErrPos &errPos)
{
if (errPos.column > 0) {

View file

@ -92,10 +92,7 @@ private:
format fmt;
};
std::ostream& operator<<(std::ostream &os, const hintformat &hf)
{
return os << hf.str();
}
std::ostream& operator<<(std::ostream &os, const hintformat &hf);
template<typename... Args>
inline hintformat hintfmt(const std::string & fs, const Args & ... args)