mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Updated the node/value classes with the new iterators, they compile until we try to instantiate anything
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
YAML::Value value = YAML::Parse("foo: bar");
|
||||
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";
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user