|
Boost : |
From: Alisdair Meredith (alisdair.meredith_at_[hidden])
Date: 2003-02-02 13:18:11
The following 2 patches in Random will pass both the graph and
random_demo tests for BCB6. random_test still fails to compile with the
compiler running out of memory.
random\uniform_smallint [line 189]
#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
typedef typename detail::uniform_smallint<std::numeric_limits<typename
UniformRandomNumberGenerator::result_type>::is_integer>::BOOST_NESTED_TEMPLATE
impl<UniformRandomNumberGenerator, IntType>::type impl_type;
#elif defined( __BORLANDC__ )
typedef typename detail::uniform_smallint< boost::is_float<typename
UniformRandomNumberGenerator::result_type>::value == false
>::BOOST_NESTED_TEMPLATE impl<UniformRandomNumberGenerator, IntType>::type impl_type;
#else
BOOST_STATIC_CONSTANT(bool, base_float = (boost::is_float<typename
UniformRandomNumberGenerator::result_type>::value == false));
typedef typename
detail::uniform_smallint<base_float>::BOOST_NESTED_TEMPLATE
impl<UniformRandomNumberGenerator, IntType>::type impl_type;
#endif
random\uniform_int [line 207]
#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
typedef typename detail::uniform_int<std::numeric_limits<typename
UniformRandomNumberGenerator::result_type>::is_integer>::BOOST_NESTED_TEMPLATE
impl<UniformRandomNumberGenerator, IntType>::type impl_type;
#elif defined( __BORLANDC__ )
typedef typename detail::uniform_int< boost::is_float<typename
UniformRandomNumberGenerator::result_type>::value == false
>::BOOST_NESTED_TEMPLATE impl<UniformRandomNumberGenerator, IntType>::type impl_type;
#else
BOOST_STATIC_CONSTANT(bool, base_float = (boost::is_float<typename
UniformRandomNumberGenerator::result_type>::value == false));
typedef typename
detail::uniform_int<base_float>::BOOST_NESTED_TEMPLATE
impl<UniformRandomNumberGenerator, IntType>::type impl_type;
#endif
-- AlisdairM Team Thai Kingdom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk