Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2006-05-30 21:44:45

Rather than what you have below - just try


By default - pointers to primitive types aren't serializable. I'm not
sure why you used the BOOST_CLASS_IMP.. below but it
would seem to me in appropriate in your case. If you do this
you will be able to do;

const creaturesImage *pci;
ar << pci;

creaturesImage *new_pci;
ar >> new_pci

assert(*pci == *new_pci);

In fact, given the size of your application, making a little program
like the above to test your serialization code separately, is
probably a good idea anyway.

Good Luck

Robert Ramey

Bryan Donlan wrote:
> Hi all,
> boost::serialization::primitive_type);

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at