mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Set up map searching by templated key
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user