[Serialization]Serializing from base class pointers clips derived class

The serialization example, test_no_rtti.cpp, appears to only write the base class XML element when saving from the base class pointer. Perhaps I am misunderstanding the point of the extended_type_info classes but I thought it was a way to serialize classes with a common base class without having to know the type of the derived class. The example in test_no_rtti.cpp clips the derived portion of the class when serializing from a base class pointer. Please advise. Thanks.

"Daniel Roberts" <impulsionaudio@gmail.com> wrote in message news:14125aaf0812281302j67e5cb38m7e2ff32769d2d3c2@mail.gmail.com... The serialization example, test_no_rtti.cpp, appears to only write the base class XML element when saving from the base class pointer. *** why does this appear to be so? Perhaps I am misunderstanding the point of the extended_type_info classes but I thought it was a way to serialize classes with a common base class without having to know the type of the derived class. *** Your understanding of the intent of the test/demo is correct. The example in test_no_rtti.cpp clips the derived portion of the class when serializing from a base class pointer. Please advise. Thanks. *** I'm not seeing this. I just ran it with the debugger and trapped on all the serialize functions of both derived classes. Robert Ramey _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Daniel Roberts
-
Robert Ramey