diff -r 46d69162ec97 boost/random/mersenne_twister.hpp --- a/boost/random/mersenne_twister.hpp Sun Aug 24 21:44:30 2008 -0400 +++ b/boost/random/mersenne_twister.hpp Wed Oct 29 10:14:10 2008 -0400 @@ -27,6 +27,10 @@ #include #include #include +#ifdef BOOST_SERIALIZE_TWISTER +#include +#include +#endif // BOOST_SERIALIZE_TWISTER namespace boost { namespace random { @@ -152,7 +156,20 @@ mt.i = mt.state_size; return is; } + #endif + +#ifdef BOOST_SERIALIZE_TWISTER + friend class boost::serialization::access; + + // Serialization + template + void serialize(Archive & ar, const unsigned int /* file_version */){ + ar & serialization::make_nvp ("i", i); + ar & serialization::make_nvp ("x", x); + } + +#endif // BOOST_SERIALIZE_TWISTER friend bool operator==(const mersenne_twister& x, const mersenne_twister& y) {