Since Map and Vector has memory management implemented within, they can no longer accept Value objects.
Yep, Map<> and Vector<> could only access reference counted objects.
What will be a proper way for which I can store a list of eg, integers, given that the size of the list will be determined/changed during runtime?
I don’t know what you meant. If you want to add a array or dictionary to a value.
Value root = Value(vec);