Added helper emitter functions, but we have a problem: YAML::Value is already a manipulator

This commit is contained in:
Jesse Beder
2011-09-10 16:50:44 -05:00
parent 12364895cb
commit 78b7a1b8a9
5 changed files with 47 additions and 4 deletions

View File

@@ -4,9 +4,7 @@
int main()
{
YAML::Value value = YAML::Parse("{foo: bar, monkey: value}");
for(YAML::const_iterator it=value.begin();it!=value.end();++it) {
std::cout << it->first.as<std::string>() << " -> " << it->second.as<std::string>() << "\n";
}
std::cout << value << "\n";
return 0;
}