mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Added helper emitter functions, but we have a problem: YAML::Value is already a manipulator
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user