Commit 8e52497d authored by beder's avatar beder
Browse files

Switched value = otherValue to assign the actual nodes after setting the...

Switched value = otherValue to assign the actual nodes after setting the reference (so that tmp = foo['bar']; tmp = other; is the same as foo['bar'] = other;)
parent 7a1e47e0
...@@ -122,6 +122,7 @@ namespace YAML ...@@ -122,6 +122,7 @@ namespace YAML
{ {
m_pNode->set_ref(*rhs.m_pNode); m_pNode->set_ref(*rhs.m_pNode);
m_pMemory->merge(*rhs.m_pMemory); m_pMemory->merge(*rhs.m_pMemory);
m_pNode = rhs.m_pNode;
} }
// size/iterator // size/iterator
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment