Boost logo

Boost :

From: Alkis Evlogimenos (alkis_at_[hidden])
Date: 2002-10-14 11:02:37


testtime_resolution_traits / gcc2953

Compiler output:

/tmp/boost/boost/libs/date_time/test/testtime_resolution_traits.cpp: In
function `int main()':
/tmp/boost/boost/libs/date_time/test/testtime_resolution_traits.cpp:46:
integer constant out of range
/tmp/boost/boost/libs/date_time/test/testtime_resolution_traits.cpp:46:
warning: decimal integer constant is so large that it is unsigned

    /opt/gcc2/bin/g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline
-I"../status" -isystem "/tmp/boost/boost" -o
"../status/bin/testtime_resolution_traits.test/gcc2953/debug/runtime-link-dynamic/testtime_resolution_traits.o"
"/tmp/boost/boost/libs/date_time/test/testtime_resolution_traits.cpp"

gcc2.95.3 doesn't like this integer constant. The following works though:

Index: libs/date_time/test/testtime_resolution_traits.cpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/date_time/test/testtime_resolution_traits.cpp,v
retrieving revision 1.4
diff -r1.4 testtime_resolution_traits.cpp
46c46
< nano_res::to_tick_count(0,1,0,0) == 60000000000);

---
>         nano_res::to_tick_count(0,1,0,0) == 60000000000LL);
I am not sure if this should be applied across the board or in an:
#if defined(__GNUC__) && __GNUC__ < 3
-- 
Alkis

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