Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-05-16 21:11:53

Robert Ramey wrote:

> Neal Becker wrote:
>> I want to suggest 2 changes that would be helpful at least to me, that
>> relate to serialization.
>> I use serialization with mersenne_twister and python. To support
>> this 2 changes are needed:
>> 1) serialization must be build as a shared library. I know this
>> doesn't
>> work on all platforms, but I believe it works on at least some, and
>> therefore should be supported.
> Done in 1.33
>> 2) Please add support for serialization to mersenne_twister.hpp. All
>> that's needed is this:
>> template<class Archive>
>> void serialize(Archive & ar, const unsigned int version)
>> {
>> ar & x;
>> ar & i;
>> }
> Hmm - well, if this doesn't make it into boost, I presume its not a
> obstacle for you.

Not sure what you mean. It is an obstacle. I use boost::python to to wrap
boost::random, and want serialization. I am giving my code to others, and
now the only way to make it work is for them to patch mersenne_twister.hpp,
(as well as building serialization as a shared lib).

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