Boost logo

Boost :

From: Lapshin, Kirill (Kirill.Lapshin_at_[hidden])
Date: 2003-03-21 12:37:49


Hi All,

 

I posted this question on boost.users list but did not get any response.

My first attempt to switch my project from boost 1.29 to 1.30 failed
miserably due to compilation errors in random library.

 

Simple

 

#include <boost/random/mersenne_twister.hpp>

#include <boost/random/normal_distribution.hpp>

int main() {return 0;}

 

Fails with lots of error messages:

 

I:\SW\EXTERNAL\BOOST_1_30_0\boost/random/uniform_01.hpp(44) : error C2275:
'std::numeric_limits<`template-parameter258'>::is_integer' : illegal use of
this type as an expression

        I:\SW\EXTERNAL\BOOST_1_30_0\boost/random/uniform_01.hpp(95) : see
reference to class template instantiation
'boost::uniform_01<UniformRandomNumberGenerator,RealType>' being compiled

I:\SW\EXTERNAL\BOOST_1_30_0\boost/random/uniform_01.hpp(44) : error C2027:
use of undefined type 'STATIC_ASSERTION_FAILURE'

        I:\SW\EXTERNAL\BOOST_1_30_0\boost/static_assert.hpp(29) : see
declaration of 'STATIC_ASSERTION_FAILURE'

        I:\SW\EXTERNAL\BOOST_1_30_0\boost/random/uniform_01.hpp(95) : see
reference to class template instantiation
'boost::uniform_01<UniformRandomNumberGenerator,RealType>' being compiled

I:\SW\EXTERNAL\BOOST_1_30_0\boost/random/normal_distribution.hpp(49) : error
C2275: 'std::numeric_limits<`template-parameter258'>::is_integer' : illegal
use of this type as an expression

 
I:\SW\EXTERNAL\BOOST_1_30_0\boost/random/normal_distribution.hpp(131) : see
reference to class template instantiation
'boost::normal_distribution<UniformRandomNumberGenerator,RealType,`template-
parameter260'>' being compiled

I:\SW\EXTERNAL\BOOST_1_30_0\boost/random/normal_distribution.hpp(49) : error
C2027: use of undefined type 'STATIC_ASSERTION_FAILURE'

        I:\SW\EXTERNAL\BOOST_1_30_0\boost/static_assert.hpp(29) : see
declaration of 'STATIC_ASSERTION_FAILURE'

 
I:\SW\EXTERNAL\BOOST_1_30_0\boost/random/normal_distribution.hpp(131) : see
reference to class template instantiation
'boost::normal_distribution<UniformRandomNumberGenerator,RealType,`template-
parameter260'>' being compiled

__________

Kirill Lapshin

 



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk