You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see that this correctly works but once the original tree which contains src is destroyed then the new subtree content is pointing to a dangling buffer.
Is there a simple yet efficient way to duplicate children on its own buffer, owned by the new tree?
The text was updated successfully, but these errors were encountered:
I'm trying to create a copy of a subtree of ryml::Tree instance which should outlive the original object. I'm using:
I can see that this correctly works but once the original tree which contains src is destroyed then the new subtree content is pointing to a dangling buffer.
Is there a simple yet efficient way to duplicate children on its own buffer, owned by the new tree?
The text was updated successfully, but these errors were encountered: