Fletcher, John P
j.p.fletcher at aston.ac.uk
Thu Apr 5 15:39:38 PDT 2012
Thank you all for your helpful replies.
I am using boost/tr1/random.hpp from 1.49.0 to fix the library code I am working with.
I will report the wider issues to the author of the library, who had not I think compiled it with clang.
As usual it is easy to learn new things in this community.
From: cfe-dev-bounces at cs.uiuc.edu [cfe-dev-bounces at cs.uiuc.edu] on behalf of Steven Watanabe [watanabesj at gmail.com]
Sent: 05 April 2012 22:39
To: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] std::tr1::variate_generator
On 04/05/2012 02:00 PM, Fletcher, John P wrote:
> I am attempting to convert some code which compiles with g++ 4.4 to work with Clang31 and libc++.
> The code includes <tr1/random> which exists in the g++ includes but not in libcxx/include.
libc++ implements C++11, not TR1. variate_generator
didn't make it into the standard.
> libc++ does have a file <random> which does have most of the things needed but not the template class variate_generator defined like this in <tr1/random>
> template<typename _Engine, typename _Dist>
> class variate_generator
> Is there an equivalent in libc++ or should I just import the g++ 4.4 file?
> P.S. The full set of defines being made in the code are:
> std::tr1::mt19937 uint_gen;
> std::tr1::uniform_real<double> uniform_dist;
> std::tr1::variate_generator< std::tr1::mt19937, std::tr1::uniform_real<double> > uniform_gen;
> std::tr1::normal_distribution<double> normal_dist;
> std::tr1::variate_generator< std::tr1::mt19937, std::tr1::normal_distribution<double> > normal_gen;
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
More information about the cfe-dev