
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Loïc Joly Sent: 02 May 2007 16:57 To: boost-users@lists.boost.org 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@lists.boost.org 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.