Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-07-08 16:56:10


Well, it thinks wchar_t is signed, but that it can't represent -1.
It looks like the built-in <limits> header is broken -- if I do:

bjam -sTOOLS=gcc -sBUILD="<define>BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS"
numeric_traits_test

everything works. However, note that this might be the effect of mistakenly
installing gcc 3.1 over gcc 3.0.x. You're not allowed to do that (but of
course they bury that fact in a FAQ somewhere), and I happen to know my
installation is broken. I haven't had the time to fix it, and most things
tend to work. You might have the same thing going on. The only easy cure is
to rip out your existing GCC installations and rebuild them from scratch
with --prefix=...

-Dave

----- Original Message -----
From: "Beman Dawes" <bdawes_at_[hidden]>
To: <boost_at_[hidden]>; <boost_at_[hidden]>
Sent: Monday, July 08, 2002 4:06 PM
Subject: Re: [boost] re: numeric_traits_test

> At 07:24 AM 7/7/2002, John Maddock wrote:
> >> An any event, if the configuration isn't at fault, why is
> >> numeric_traits_test failing? Is there a bug? In Boost code, or in
GCC
> >> 3.1?
> >
> >It's working OK with gcc2.95 under cygwin provided the
> -ftemplate-depth-30
> >option is used, what errors are you seeing with 3.1?
>
> It is failing a static assert. See below.
>
> --Beman
>
> cc1plus.exe: warning: changing search order for system directory
> "C:/boost/site" cc1plus.exe: warning: as it has already been specified as
a
> non-system directory C:/boost/site/libs/utility/numeric_traits_test.cpp:
In
> function `void test_aux(signed_tag, Number*) [with Number = wchar_t]':
> C:/boost/site/libs/utility/numeric_traits_test.cpp:361: instantiated from
> `void test(Number*) [with Number = wchar_t]'
> C:/boost/site/libs/utility/numeric_traits_test.cpp:370: instantiated from
> here C:/boost/site/libs/utility/numeric_traits_test.cpp:314: `sizeof'
> applied to incomplete type `boost::STATIC_ASSERTION_FAILURE' g++ -c -Wall
> -ftemplate-depth-100 -g -O0 -fno-inline -I"..\status" -I"C:\boost\site"
> -I"." -isystem "C:\boost\site" -o
>
"..\status\bin\numeric_traits_test.test\gcc\debug\runtime-link-dynamic\nume
ric_traits_test.obj"
> "C:\boost\site\libs/utility\numeric_traits_test.cpp"
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>


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