mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Updated the ostream emitting overload to user the new ostream-handling emitters
This commit is contained in:
@@ -15,9 +15,8 @@ namespace YAML
|
|||||||
|
|
||||||
std::ostream& operator << (std::ostream& out, const Node& node)
|
std::ostream& operator << (std::ostream& out, const Node& node)
|
||||||
{
|
{
|
||||||
Emitter emitter;
|
Emitter emitter(out);
|
||||||
emitter << node;
|
emitter << node;
|
||||||
out << emitter.c_str();
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user