Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-05-13 10:43:43


Joel Young wrote:
> I tried to use boost::random::uniform_int with the
> in-development big_integer library.
[...]
> Compiling this yields:
>
> ///////////////////////
> g++ -o a -I ~/boost/boost/include/boost-1_31/ randomtest.cpp
> /home/afit1/fac/jyoung/boost/boost/include/boost-1_31/boost/random/uniform_
>int.hpp: In
> constructor `boost::uniform_int<IntType>::uniform_int(IntType,IntType)
> [with IntType = main(int, char**)::data_t]':
> randomtest.cpp:10: instantiated from here
> /home/afit1/fac/jyoung/boost/boost/include/boost-1_31/boost/random/uniform_
>int.hpp:52: error: invalid
> application of `sizeof' to an incomplete type

Yea, that's quite vague error message, but in fact this is failed
STATIC_ASSERT. The line in question reads:

    BOOST_STATIC_ASSERT(std::numeric_limits<IntType>::is_integer);

so I guess numeric_limits should be somehow specialized for big_integer.

- Volodya


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