mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 04:51:17 +00:00
Set the 'memory' to only store node_refs, not nodes
This commit is contained in:
@@ -16,9 +16,9 @@ namespace YAML
|
||||
|
||||
shared_node memory::create_node()
|
||||
{
|
||||
shared_node pNode(new node);
|
||||
m_nodes.insert(pNode);
|
||||
return pNode;
|
||||
shared_node_ref pRef(new node_ref);
|
||||
m_nodes.insert(pRef);
|
||||
return shared_node(new node(pRef));
|
||||
}
|
||||
|
||||
void memory::merge(const memory& rhs)
|
||||
|
Reference in New Issue
Block a user