print for debug: the ostream need explicit string not char[].
This commit is contained in:
parent
d96d1f68d5
commit
fb8ca28ea3
@ -155,7 +155,7 @@ namespace mupp { namespace ast
|
||||
typedef std::list<statement> statement_list;
|
||||
|
||||
// print functions for debugging
|
||||
inline std::ostream& operator<<(std::ostream& out, nil) { out << "nil"; return out; }
|
||||
inline std::ostream& operator<<(std::ostream& out, nil) { out << std::string("nil"); return out; }
|
||||
inline std::ostream& operator<<(std::ostream& out, variable const& var) { out << var.name; return out; }
|
||||
}}
|
||||
|
||||
|
@ -155,7 +155,7 @@ namespace mupp { namespace ast
|
||||
typedef std::list<statement> statement_list;
|
||||
|
||||
// print functions for debugging
|
||||
inline std::ostream& operator<<(std::ostream& out, nil) { out << "nil"; return out; }
|
||||
inline std::ostream& operator<<(std::ostream& out, nil) { out << std::string("nil"); return out; }
|
||||
inline std::ostream& operator<<(std::ostream& out, variable const& var) { out << var.name; return out; }
|
||||
}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user