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