Boost logo

Boost Users :

From: Pavlo Korzhyk (pavlo.korzhyk_at_[hidden])
Date: 2007-05-02 12:11:48


> Should I do this in my derived class to include the base class
> serialisation
>
> ar & base_object<A>(*this)
>
> Or should I do this
>
> ar & base_object<A>(make_nvp("base", *this) )
>
> Both give the same compile error

I use
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(DBObject);
where DBObject is the name of the base class.

Does this suit your needs?

WBR, Pavlo Korzhyk
ICQ#155870780


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