Re: [Boost-users] serialization: again a problem, failing to serializea std::vector of pointers
RIVASSEAU Jean Noel ha escrito:
Sorry, I removed the QString stuff, so it should make more sense to you now. I have attached the cleaned up code. If you try to compile it, it will fail on the file
ClassSpecification_serialization.cc
with a message saying that there is a problem with the extended_type_info of std::vector< MemberVariableSpecification *> (since a member of ClassSpecification, which I serialize, is of this type).
Don't pay attention as to what are my real intentions on this example code, this comes from my real project, and it would be long to explain. Just let's say that, no, I am not trying to store class id information into the archive, it is just that one data member of one of object that I need to serialize has the name class_id (but it could be named "walnut_field", the code would be the same).
This small example code is just there to show you the bug that occurs.
As for the mixing of type systems (no_rtti and type_id), it was just a test to see if that would change things. I have reverted it back in the attached code (only no_rtti used) but it still does not work.
Jean-Noël, maybe you can try using the proposed patch at http://lists.boost.org/Archives/boost/2006/02/101539.php and report your results. I've got the hunch your problem might be related to the issue dealt with at that post. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
participants (1)
-
Joaquín Mª López Muñoz