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 ?
if no
there won't be enough motivation to treat this is an issue worth solving.
if some of you out there cannot simulate the warning, but take my assertion on face value, is there any drive to make boost compile warning free.
or am I expecting too much from this support group.
the answer could be - it compiles warning free on 4.2.1 and we'll solve 4.4.5 issue next year.
Even if there is no motivation to make it compile warning free, those of you who are very advanced in boost internals, may be able to point out what the problem is and I can make code change locally.
integral_wrapper.hpp line 73
warning: the result of the conversion is unspecified because '-0x00000000000000001' is outside the range of type 'boost::numeric::udt_builtin_mixture_enum' [-Wconversion]
line 73 is doing (value-1) resulting in -ve number and maybe boost::numeric::udt_builtin_mixture_enum is unsigned int ?
I am lost about what is "value" and what datatype is boost::numeric::udt_builtin_mixture_enum, and how does sregex contractor related to any of this.
thx
Neeraj
________________________________
From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Marshall Clow
Sent: Friday, December 09, 2011 12:09 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [boost] compilation warnings questions by a newbee
On Dec 9, 2011, at 7:41 AM, Rai, Neeraj wrote:
Hi Marshall,
1. are you using the g++ or gcc ?
I am using G++ 4.2.1 and Boost 1.48.
Without being sure, I think the differences are between boost 1.44 and 1.48.
2. which version are you using ? I got the code from another group which is on older version of g++ (perhaps 4.3.x) and they don't get warning too.
we tried 4.4.5 and 4.6 of g++ with same results.
my cmd line is below again - not sure what else could be different.
g++ -ftemplate-depth-128 -O0 -fno-inline -Wall -g -Wconversion -Wno-strict-aliasing -Wextra -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-array-bounds -Wno-ignored-qualifiers -Wno-parentheses -Wno-strict-aliasing -fPIC -DBOOST_ALL_NO_LIB -I<path to boost_1_44_0>/include -Iinclude -c -o boost_regex_test.o boost_regex_test.cpp
Vicente, sorry for misspelling your name in the last email.
thanks
________________________________
From: boost-users-bounces@lists.boost.orgmailto:boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Marshall Clow
Sent: Thursday, December 08, 2011 7:04 PM
To: boost-users@lists.boost.orgmailto:boost-users@lists.boost.org
Subject: Re: [Boost-users] [boost] compilation warnings questions by a newbee
On Dec 8, 2011, at 3:38 PM, Rai, Neeraj wrote:
Hi Vincent,
You are right - the -Wconversion causes it to warn on that line. Is there any way to fix it ?
2 reasons : a) we are not allowed to have warnings in our code
b) I am going to miss the real warnings about conversion if I let this pass.
I just tried 1.48.0 with g++ 4.4.5 and 4.6 and same results. Without -Wconversion it is clean, but that is not an option for me.
I just tried again with -Wconversion (and boost 1.48). No warnings.
Not sure what is PO ?
I think he meant "OP" - original poster.
From: boost-users-bounces@lists.boost.orgmailto:boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vicente J. Botet Escriba
Sent: Thursday, December 08, 2011 6:24 PM
To: boost-users@lists.boost.orgmailto:boost-users@lists.boost.org
Subject: Re: [Boost-users] [boost] compilation warnings questions by a newbee
Le 09/12/11 00:11, Marshall Clow a écrit :
On Dec 8, 2011, at 2:58 PM, Rai, Neeraj wrote:
Hi,
I am writing my first boost program and having trouble with the compiler warning against boost 1.44.0.
Is there any way to get rid of those warnings so I can focus on real warnings in my code ?
The gist of warning is :
boost_1_44_0/include/boost/mpl/aux_/integral_wrapper.hpp:73:96: warning: the result of the conversion is unspecified because '-0x00000000000000001' is outside the range of type 'boost::numeric::udt_builtin_mixture_enum' [-Wconversion]
Any help or pointers are appreciated.
Neeraj
====== The following program is a cut down version of my code, just declares sregex
#include <iostream>
#include