Boost logo

Boost :

Subject: Re: [boost] [random] uniform_01 not usable in backwards compatible mode
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-03-14 15:17:17


On 03/14/2012 11:45 AM, John Maddock wrote:
> Apologies for the minor flood of posts....
> uniform_01 has a default constructor only (fine for the "new"
> interface), but for the old interface, the base class has a single arg
> constructor only and no default constructor. In other words there's no
> way to construct a uniform_01 in backwards compatibility mode (when the
> first template arg is a distribution).

What about:
explicit uniform_01(typename traits::rvalue_type rng);

> Also the traits selection class that switches between new and old
> interfaces should probably be documented (and not in detail{ namespace).

No it shouldn't. The backward compatibility mode
is not documented at all, and I have no intention
of documenting it. I only put it in to avoid breaking
existing code. The interface it implements was
obsolete ages before my updates and only stuck
around as long as it did because the rest of the
random library was using it.

In Christ,
Steven Watanabe

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