
Neal Becker escribió:
Please consider adding this patch to add serialization to mersenne_twister. Since it is only active if BOOST_SERIALIZE_TWISTER is defined, it is completely harmless to those who don't use it.
There was a discussion in the past about how to provide serialization capabilities and the general opinion was that this is better packaged as a separate header when feasible, something like boost/random/mersenne_twister_serialize.hpp or boost/random/mersenne_twister/serialize.hpp or similar. BTW, it'd be good if we could reach a naming consensus for these serialization files. My favorite is: boost/.../xxx.hpp provides serialization capabilities at boost/.../xxx/serialize.hpp Joaquín M López Muñoz Telefónica, Investigación y Desarrollo