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