biojppm / rapidyaml

Rapid YAML - a library to parse and emit YAML, and do it fast.
MIT License
583 stars 100 forks source link

last append_child() operation will modify the previous append_child() ? #450

Closed yuzu-ogura closed 4 months ago

yuzu-ogura commented 4 months ago

Here is my code: //This is my function, used to AppendNode Node newNode = node.append_child(); newNode |= ryml::MAP; newNode[ryml::to_csubstr(nodeName)] << nodeValue; first call result is : contacts:

second call result is : contacts:

yuzu-ogura commented 4 months ago

Sorry, it's my fault. I have solved the problem.