|
Boost Users : |
From: Hughes, James (jhughes_at_[hidden])
Date: 2007-05-03 03:49:46
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Loïc Joly
> Sent: 02 May 2007 16:57
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [serialisation] XML Archives
> andBOOST_CLASS_EXPORT_GUID
>
> 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
Thanks Guys - that fixed the compile issue. Been staring at the documentation for a day, and still managed to miss that one - even more annoying when it was exactly what I was expecting to look for. I have to say I do find the documentation for serialisation a little disjointed at times - it's all there, just difficult to find unless you know where to look (which rather negates the reason for the documentation!!)
Even better news, adding the GUID stuff has fixed the other issue I have been seeing - and now I can serialise away to my hearts content.
James
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.
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