This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Differences in <random> from TR1 to C++-0X
- From: "Chris Fairles" <chris dot fairles at gmail dot com>
- To: "Ed Smith-Rowland" <3dw4rd at verizon dot net>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 12 Nov 2008 10:13:44 -0500
- Subject: Re: Differences in <random> from TR1 to C++-0X
- References: <491AE8CC.9050401@verizon.net>
On Wed, Nov 12, 2008 at 9:31 AM, Ed Smith-Rowland <3dw4rd@verizon.net> wrote:
> Greetings,
>
> I was looking over random both in TR1 and C++-0X and it seems, unlike most
> other components, the differences between TR1 and std (C++-0X) for random
> are rather significant. Classes were added, removed, and renamed.
>
> Unfortunately, the std (C++-0X) version still uses the old (TR1) names for
> all
> relevant classes.
>
> I would be willing to try this if no one else is working on it. (I noticed
> some activity
> on random that might help with some of the examples in Becker's book ;-) )
>
> Ed
>
>
I don't know of anyone actively working on c++0x <random> but in any
case it looks like it might be worth separating <tr1/random> from
c++0x's <random> (as it was done for tuple's, shared_ptr's etc).
Actually, I take that back. There's probably very few differences (if
any) in the implementations so I think #ifdef'ing on
__GXX_EXPERIMENTAL_CXX0X__ will suffice.
Chris