mirror of
https://github.com/loot/yaml-cpp.git
synced 2026-07-27 14:13:42 -07:00
Added writing float/double
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ int main()
|
||||
out << YAML::Comment("Hello");
|
||||
out << YAML::Anchor("a") << YAML::Comment("anchor") << "item 1" << YAML::Comment("a");
|
||||
out << YAML::BeginMap << YAML::Comment("b");
|
||||
out << "pens" << YAML::Comment("foo") << "a" << YAML::Comment("bar");
|
||||
out << "pens" << YAML::Comment("foo") << 2.3 << YAML::Comment("bar");
|
||||
out << "pencils" << 15;
|
||||
out << YAML::EndMap << YAML::Comment("monkey");
|
||||
out << "item 2";
|
||||
|
||||
Reference in New Issue
Block a user