Set the 'memory' to only store node_refs, not nodes

This commit is contained in:
beder
2011-09-07 14:56:04 -05:00
parent 82fa4e71db
commit a9c7f8cc5a
8 changed files with 32 additions and 31 deletions

View File

@@ -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)