Boost logo

Boost Users :

From: Bill Lear (rael_at_[hidden])
Date: 2007-04-24 19:14:08


On Tuesday, April 24, 2007 at 16:07:03 (-0700) Oleg V. Zhylin writes:
>...
> // If your program fails to compile here, its most likely due
>to
> // not specifying an nvp wrapper around the variable to
> // be serialized.

I believe you need the BOOST_SERIALIZATION_NVP wrapper, here:

> ar & i;

around i, thus:

     ar & BOOST_SERIALIZATION_NVP(i);

Bill


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