
21 Mar
2009
21 Mar
'09
2:04 a.m.
Benoit Gagnon wrote:
On Mar 20, 2:13 pm, Sohail Somani
wrote: Am I missing something? I still haven't figured this out, if anyone has clues... Should I make a wrapper class around the std::vector and implement serialization for it? Do you have BOOST_CLASS_EXPORT for each class that you are serializing by base class pointer? For example, Hospital. You should have something
Benoit Gagnon wrote: like:
#include
class Hospital ...;
BOOST_CLASS_EXPORT(Hospital)
That did it, thank you!
Great! IMHO, with Boost Serialization, more than others, you really do need to read the *whole* documentation before you write code. It will pay dividends. I'm pretty sure this exact case is covered somewhere in the docs. -- Sohail Somani http://uint32t.blogspot.com