Could not get it to work like that, so i went with a plain
as my event’s member and the scripted function that assign it uses a line like
event.bv := anything;
i still have to test what happens if anything gets deleted in different places, hope whatever the actual type inside the bv is this way won’t leak when removing events.
i don’t really understand how boxed_value does it’s magic, or what it actually consists of. (i imagine some kind of pointer and type-info.)
but putting a ref/ptr(?) into the box rather than putting the box into a shared_ptr seems to work so far.