Updated the ostream emitting overload to user the new ostream-handling emitters

This commit is contained in:
Jesse Beder
2012-05-25 19:38:20 -05:00
parent a78069a6e2
commit 6c690e8294

View File

@@ -15,9 +15,8 @@ namespace YAML
std::ostream& operator << (std::ostream& out, const Node& node)
{
Emitter emitter;
Emitter emitter(out);
emitter << node;
out << emitter.c_str();
return out;
}