Switched map's convert<> specialization to use the new force_insert

This commit is contained in:
Jesse Beder
2012-10-31 19:10:45 -05:00
parent 09b4706faf
commit a03e861d8c

View File

@@ -128,7 +128,7 @@ namespace YAML
static Node encode(const std::map<K, V>& rhs) {
Node node(NodeType::Map);
for(typename std::map<K, V>::const_iterator it=rhs.begin();it!=rhs.end();++it)
node[it->first] = it->second;
node.force_insert(it->first, it->second);
return node;
}