
AMDG
On 03/18/2012 01:13 PM, Thijs (M.A.) van den Berg wrote:
On 03/18/2012 11:11 AM, thijs@sitmo.com wrote:
I was wondering what the status is on implementing the discard() functionality in random engines?
linear_congruential_engine has an optimized discard. I think most of the rest are implemented as as simple for loop.
Good to hear that it's implemented. I went through the code and found it indeed (1.48 linear_congruential.hpp). There is however no mention I could find in the online manuals of 1.49 about "engines" concepts. Is it implemented but not ready as a full implementation of the C++11engine concept? is that reason that it's not publicly documented yet?
That's an oversight. Boost.Random should be fully compatible with C++0x <random>. I'll update the Concepts to reflect this. Can you file a ticket a http://svn.boost.org/?
I will. Thanks for the feedback.