diff options
author | Shea Levy <shea@shealevy.com> | 2014-12-02 10:02:03 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-12-02 10:27:10 -0500 |
commit | 608110804cc753eee31418fda1b33cb77a83d0fc (patch) | |
tree | 25fb469c4c82fb6ce8670f01a088a63513e9e1b7 /src/libexpr/eval.cc | |
parent | 320659b0cd161249c95e736c3fb309b1a73ea728 (diff) |
Make all ExternalValueBase functions const
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 b0afccdfb..2ff975610 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); } |