diff options
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index b0afccdfbaaf..2ff9756108ad 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1616,20 +1616,20 @@ size_t valueSize(Value & v) } -string ExternalValueBase::coerceToString(const Pos & pos, PathSet & context, bool copyMore, bool copyToStore) +string ExternalValueBase::coerceToString(const Pos & pos, PathSet & context, bool copyMore, bool copyToStore) const { throw TypeError(format("cannot coerce %1% to a string, at %2%") % showType() % pos); } -bool ExternalValueBase::operator==(const ExternalValueBase & b) +bool ExternalValueBase::operator==(const ExternalValueBase & b) const { return false; } -std::ostream & operator << (std::ostream & str, ExternalValueBase & v) { +std::ostream & operator << (std::ostream & str, const ExternalValueBase & v) { return v.print(str); } |