
Dear Robert
Thank you for answering.
I am sorry I was not very specific (though please don't think I would put the
question without RTFM first ;) )
The part of documentation you pointed to told me to do const_cast manually. It is fine
in case of const members of a class, but this time the const type is contained by a vector.
I could manually write the serialization code for my vector
Look in the documentation under Reference/Class Serialization/const members
Robert Ramey
Zoltan Szatmary wrote:
Hello
could you help please? what is the easiest way to (de)serialize a member of type vector
(A being a base class)? Serializing is fine, but deserialization fails to compile since the vector deserialization code tries to deserialize a const A* pointer without const_cast-ing it (I guess). Thank you in advance
Zoltan