move implementation to cc
This commit is contained in:
parent
adf03b0b8e
commit
057e5b6b2e
|
@ -8,6 +8,11 @@ namespace nix
|
||||||
|
|
||||||
std::optional<string> ErrorInfo::programName = std::nullopt;
|
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)
|
string showErrPos(const ErrPos &errPos)
|
||||||
{
|
{
|
||||||
if (errPos.column > 0) {
|
if (errPos.column > 0) {
|
||||||
|
|
|
@ -92,10 +92,7 @@ private:
|
||||||
format fmt;
|
format fmt;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream &os, const hintformat &hf)
|
std::ostream& operator<<(std::ostream &os, const hintformat &hf);
|
||||||
{
|
|
||||||
return os << hf.str();
|
|
||||||
}
|
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
inline hintformat hintfmt(const std::string & fs, const Args & ... args)
|
inline hintformat hintfmt(const std::string & fs, const Args & ... args)
|
||||||
|
|
Loading…
Reference in a new issue