Boost Users :
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-05-08 11:27:11
This is addressed with the alternative BOOST_CLASS_EXPORT method. its
described in the serialization documentation.
> Hi all,
> I have a container class that has a vector which contains
> several other classes. My container class has a serialize
> function that looks like this:
> friend class boost::serialization::access;
> template<class Archive> void serialize (Archive &ar, const
> unsigned int version)
> // save/load base class information
> ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(MyBaseClass);
> ar & BOOST_SERIALIZATION_NVP(m_Vector); // std::vector
> Got everything working but now an issue has come up:
> Someone wants to add a new class but it is not part of this
> package that is doing the serialzation. I want to avoid
> what I call "dependency hell", is there a way for that new
> class to get registered someplace other than in this
> Thanks for any help,
> Discover Yahoo!
> Stay in touch with email, IM, photo sharing and more. Check it out!
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