I wonder if you have a (simple) code to show how to use the value & tree you’ve added.
I’m looking for a hierarchical container à la DOM tree that could easily be serialized to xml.
From the documentation, I wonder it could be used, but I don’t understand how it serialize things (and what is the property, type and name of a tree?)
How does it serialize objects in variant ?
What about a ValueTree::setType method ?
Currently, the only way to change the value type is to use operator = with a temporary, which is quite a waste of resources.
The way I intended the type to be used is like an XML tag - it describes the purpose of the valuetree, not its current state. If you find you need to change the type, then maybe you should be using a property instead?