I'm wondering if there is an elegant way to make a var with a dynamicObject inside so that I can use it like a dictionary or javascript object.
Obviously doing this:
var(new DynamicObject());
works but leaks
Doing this
DynamicObject::Ptr dyna = new DynamicObject(); var(dyna.getObject());
Also works with no leaks but looks complicated
Is there any better suggestion ?