Added overloads for parsing stl maps and vectors

This commit is contained in:
jbeder
2010-03-15 04:25:17 +00:00
parent e58f0f31b7
commit 11903da3fb
3 changed files with 40 additions and 3 deletions

View File

@@ -1121,9 +1121,9 @@ namespace Test {
" 0.278";
PARSE(doc, input);
StringMap key;
key._["first"] = "Sammy";
key._["last"] = "Sosa";
std::map<std::string, std::string> key;
key["first"] = "Sammy";
key["last"] = "Sosa";
YAML_ASSERT(doc.size() == 1);
YAML_ASSERT(doc[key].size() == 2);
YAML_ASSERT(doc[key]["hr"] == 65);