diff -r 45d1d3143fe3 boost/random/mersenne_twister.hpp
|
a
|
b
|
|
| 27 | 27 | #include <boost/random/linear_congruential.hpp> |
| 28 | 28 | #include <boost/detail/workaround.hpp> |
| 29 | 29 | #include <boost/random/detail/ptr_helper.hpp> |
| | 30 | #include <boost/serialization/collection_size_type.hpp> |
| | 31 | #include <boost/serialization/nvp.hpp> |
| 30 | 32 | |
| 31 | 33 | namespace boost { |
| 32 | 34 | namespace random { |
| … |
… |
public:
|
| 152 | 154 | mt.i = mt.state_size; |
| 153 | 155 | return is; |
| 154 | 156 | } |
| | 157 | |
| | 158 | friend class boost::serialization::access; |
| | 159 | |
| | 160 | // Serialization |
| | 161 | template<class Archive> |
| | 162 | void serialize(Archive & ar, const unsigned int /* file_version */){ |
| | 163 | ar & serialization::make_nvp ("i", i); |
| | 164 | ar & serialization::make_nvp ("x", x); |
| | 165 | } |
| | 166 | |
| 155 | 167 | #endif |
| 156 | 168 | |
| 157 | 169 | friend bool operator==(const mersenne_twister& x, const mersenne_twister& y) |