diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-04-15 10:09:43 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-04-15 10:09:43 -0600 |
commit | 057e5b6b2e8bf7977c1f57d6f80cc17aa40096d9 (patch) | |
tree | b8a11cd362209416c1d2f905ff22934017705a22 | |
parent | adf03b0b8e5adc601fcc40cd6fd29f7b200f9a9e (diff) |
move implementation to cc
-rw-r--r-- | src/libutil/error.cc | 5 | ||||
-rw-r--r-- | src/libutil/error.hh | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc index 40354cc87..a5571d4ec 100644 --- a/src/libutil/error.cc +++ b/src/libutil/error.cc @@ -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) { diff --git a/src/libutil/error.hh b/src/libutil/error.hh index 8286eaab1..5658e6335 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -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) |