Updated the node/value classes with the new iterators, they compile until we try to instantiate anything

This commit is contained in:
beder
2011-09-10 14:11:42 -05:00
parent 81243c87d4
commit 89f87d855d
6 changed files with 36 additions and 33 deletions

View File

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