Skip to content

Commit

Permalink
move implementation to cc
Browse files Browse the repository at this point in the history
  • Loading branch information
bburdette committed Apr 15, 2020
1 parent adf03b0 commit 057e5b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/libutil/error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 1 addition & 4 deletions src/libutil/error.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 057e5b6

Please sign in to comment.