Switched the ostream wrapper to wrap a std::vector<char> instead of our manually managed memory

This commit is contained in:
Jesse Beder
2012-05-25 18:17:14 -05:00
parent 7c85e9d5de
commit e6d4a915dc
3 changed files with 17 additions and 41 deletions

View File

@@ -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";