* The << operator on values should be const.

This commit is contained in:
Eelco Dolstra 2010-05-18 10:36:37 +00:00
parent b2235d81d1
commit 93cd5a4a13
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ bool parseOptionArg(const string & arg, Strings::iterator & i,
Value & v(autoArgs[state.symbols.create(name)].value);
if (arg == "--arg")
state.mkThunk_( v, parseExprFromString(state, value, absPath(".")));
state.mkThunk_(v, parseExprFromString(state, value, absPath(".")));
else
mkString(v, value);

View file

@ -16,7 +16,7 @@
namespace nix {
std::ostream & operator << (std::ostream & str, Value & v)
std::ostream & operator << (std::ostream & str, const Value & v)
{
switch (v.type) {
case tInt:

View file

@ -171,7 +171,7 @@ typedef std::map<Path, Path> SrcToStore;
struct EvalState;
std::ostream & operator << (std::ostream & str, Value & v);
std::ostream & operator << (std::ostream & str, const Value & v);
class EvalState