|
Boost Users : |
Subject: Re: [Boost-users] [boost] compilation warnings questions by a newbee
From: Daniel James (dnljms_at_[hidden])
Date: 2011-12-09 13:16:54
On 9 December 2011 17:36, Rai, Neeraj <neeraj.rai_at_[hidden]> wrote:
> Hi ,
>
> I don't think difference is due to 1.44 and 1.48 because I get same warnings
> with both version.
> It seems to me that you don't get warnings because of older g++ compiler
> than what we are using.
> Would you or anyone else on the list happen to have access to newer version
> of g++ ?
>
> can someone simulate what I am seeing ?
I tried it on OS X with boost 1.48, I got no warning for apple's gcc
4.2, but did a get a warning for macport's gcc 4.4:
daniel_at_kipple:~/tmp$ g++-4.2 test.cpp -I ~/boost/archive/boost_1_48_0
-Wconversion
daniel_at_kipple:~/tmp$ g++-mp-4.4 test.cpp -I
~/boost/archive/boost_1_48_0 -Wconversion
[snip trail]
test.cpp:9: instantiated from here
/Users/daniel/boost/archive/boost_1_48_0/boost/mpl/aux_/integral_wrapper.hpp:73:
warning: the result of the conversion is unspecified because
'-0x00000000000000001' is outside the range of type
'boost::numeric::int_float_mixture_enum'
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net