Subject: Re: [boost] [random] release notes?
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2009-08-26 20:02:06
Steven Watanabe wrote:
> Neal Becker wrote:
>> There are breaking changes in 1.40 mersenne_twister.hpp.
> I believe that the only breaking change is that
> boost::mt19937 prng1;
> boost::mt19937 prng2(prng2);
> now calls the copy constructor.
> Is that correct?
>> Is this in release
> It doesn't look like it.
>> (Where are release notes?)
My boost_random python wrapper broke, because it seems the signature of
is changed to
seed (result_type const&)
Here's my code (note workaround):
class_<rng_t> ("rng", "Mersenne Twister", bp::init<rng_t::result_type>(
" `seed` :
.def ("getstate", &mt_pickle_suite::getstate)
.def ("setstate", &mt_pickle_suite::setstate)
#if BOOST_VERSION >= 104000
.def ("seed", (void (rng_t::*)(rng_t::result_type const&))
.def ("seed", (void (rng_t::*)(rng_t::result_type))(&rng_t::seed),
"Reset generator using seed value x\n\n"
" `x` : int\n"
" initial seed\n"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk