Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2004-11-04 13:45:19

don't for get to include friend class boost::serialization::access;

while we're at it - same comment applies to:octonion, quarternion, and all
other trivial serializations.

non-trivial serializations - e.g. boost::shared_ptr should include something

template<class Archive, class T>
friend void serialization(Archive & ar, shared_ptr<T> & t);

I would also like to see all these libraries include a small test of its

Of course, I'm talking about boost 1.33+

Robert Ramey

"Neal D. Becker" <ndbecker2_at_[hidden]> wrote in message
> I know I've mentioned this before. I'd really like to see this tiny bit
> code added to mersenne_twister:
> template<class Archive>
> void serialize(Archive & ar, const unsigned int version)
> {
> ar & x;
> ar & i;
> }
> This would make it very easy to use our new serialization library with
> mersenne_twister. It costs nothing if you don't use it. If you are
> paranoid, it could be surrounded by an #ifdef.
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at