Set up map searching by templated key

This commit is contained in:
Jesse Beder
2011-09-07 03:21:24 -05:00
parent f0174ca08b
commit 020cd97915
6 changed files with 37 additions and 31 deletions

View File

@@ -57,7 +57,7 @@ namespace YAML
}
// indexing
shared_node node_data::operator[](shared_node pKey) const
shared_node node_data::get(shared_node pKey) const
{
if(m_type != ValueType::Map)
return shared_node(new node);
@@ -70,7 +70,7 @@ namespace YAML
return shared_node(new node);
}
shared_node node_data::operator[](shared_node pKey)
shared_node node_data::get(shared_node pKey)
{
switch(m_type) {
case ValueType::Undefined: