mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 12:21:17 +00:00
Merged ostreams for the emitter change from the core
This commit is contained in:
@@ -3,11 +3,10 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
YAML::Emitter out;
|
||||
YAML::Emitter out(std::cout);
|
||||
out << YAML::BeginSeq;
|
||||
out << ':';
|
||||
out << "item 1";
|
||||
out << YAML::BeginSeq << "foo 1" << "bar 2" << YAML::EndSeq;
|
||||
out << YAML::EndSeq;
|
||||
|
||||
std::cout << out.c_str() << "\n";
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user