Boost logo

Boost Users :

From: Loïc Joly (loic.joly_at_[hidden])
Date: 2007-05-02 11:57:29


Hughes, James a écrit :
> Now looking at the code where the final error occurs, it says this is
> usually down to an unspecified NVP - i.e. a serialisation of a data item
> not in an nvp statements. However, all the classes involved do have this
> correctly set up. I have one question on it though..
>
> 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) )
>

You should look into BOOST_SERIALIZATION_BASE_OBJECT_NVP

-- 
Loïc

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