mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Tweak sandbox
This commit is contained in:
@@ -11,9 +11,10 @@ int main()
|
|||||||
out << YAML::BeginMap << YAML::Comment("b");
|
out << YAML::BeginMap << YAML::Comment("b");
|
||||||
out << "pens" << YAML::Comment("foo") << "a" << YAML::Comment("bar");
|
out << "pens" << YAML::Comment("foo") << "a" << YAML::Comment("bar");
|
||||||
out << "pencils" << "b";
|
out << "pencils" << "b";
|
||||||
out << YAML::EndMap;
|
out << YAML::EndMap << YAML::Comment("monkey");
|
||||||
out << "item 2";
|
out << "item 2";
|
||||||
out << YAML::EndSeq;
|
out << YAML::EndSeq;
|
||||||
|
out << YAML::Comment("end");
|
||||||
|
|
||||||
std::cout << out.c_str() << "\n";
|
std::cout << out.c_str() << "\n";
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user