print for debug: the ostream need explicit string not char[].
This commit is contained in:
@ -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; }
|
||||
}}
|
||||
|
||||
|
Reference in New Issue
Block a user