Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization]Serializing from base class pointersclips derived class
From: Robert Ramey (ramey_at_[hidden])
Date: 2008-12-29 02:07:33


"Daniel Roberts" <impulsionaudio_at_[hidden]> wrote in message
news:14125aaf0812281302j67e5cb38m7e2ff32769d2d3c2_at_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_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net