mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 12:21:17 +00:00
Switched the ostream wrapper to wrap a std::vector<char> instead of our manually managed memory
This commit is contained in:
@@ -5,7 +5,8 @@ int main()
|
||||
{
|
||||
YAML::Emitter out;
|
||||
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";
|
||||
|
Reference in New Issue
Block a user