[lexical_cast] Tru64 cxx warnings

The EDG-based Tru64 cxx compilers (both versions 6.5 and 7.1) produce this new warning (Boost CVS HEAD as of last night): cxx -o boost_adaptbx/rational_ext.o -c -std strict_ansi -msg_display_number -msg_disable 186,450,1115,1133 -tlocal -DBOOST_DISABLE_THREADS -DNDEBUG -O2 -fast -DBOOST_ALL_NO_LIB -DBOOST_PYTHON_MAX_BASES=2 -I/net/redbelly/scratch1/rwgk/auto_build/sources/boost -Ibase/include/python2.5 -I/net/redbelly/scratch1/rwgk/auto_build/sources/base/include/python2.5 /net/redbelly/scratch1/rwgk/auto_build/sources/boost_adaptbx/rational_ext.cpp cxx: Warning: sources/boost/boost/lexical_cast.hpp, line 508: #191-D type qualifier is meaningless on cast type int const digit = static_cast<int const>(n % 10); ----------------------------------------------^ Is the compiler correct? Could the "const" be removed? Ralf ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097

Ralf W. Grosse-Kunstleve wrote:
The EDG-based Tru64 cxx compilers (both versions 6.5 and 7.1) produce this new warning (Boost CVS HEAD as of last night):
cxx -o boost_adaptbx/rational_ext.o -c -std strict_ansi -msg_display_number -msg_disable 186,450,1115,1133 -tlocal -DBOOST_DISABLE_THREADS -DNDEBUG -O2 -fast -DBOOST_ALL_NO_LIB -DBOOST_PYTHON_MAX_BASES=2 -I/net/redbelly/scratch1/rwgk/auto_build/sources/boost -Ibase/include/python2.5 -I/net/redbelly/scratch1/rwgk/auto_build/sources/base/include/python2.5 /net/redbelly/scratch1/rwgk/auto_build/sources/boost_adaptbx/rational_ext.cpp cxx: Warning: sources/boost/boost/lexical_cast.hpp, line 508: #191-D type qualifier is meaningless on cast type int const digit = static_cast<int const>(n % 10); ----------------------------------------------^ Hartmut Kaiser changed this line to get rid of a warning on some other compiler.
----------------------------------------------------------------------- revision 1.34 date: 2007/02/26 17:27:26; author: hkaiser; state: Exp; lines: +1 -1 Fixed a warning, when lexical cast is used to convert a boost::ulong_long_type to a string. -----------------------------------------------------------------------
Is the compiler correct? Could the "const" be removed? I've just commited the fix.
-- Alexander Nasonov http://nasonov.blogspot.com You must do the thing you think you cannot do. -- Eleanor Roosevelt -- This quote is generated by: /usr/pkg/bin/curl -L http://tinyurl.com/veusy \ | sed -e 's/^document\.write(.//' -e 's/.);$/ --/' \ -e 's/<[^>]*>//g' -e 's/^More quotes from //' \ | fmt | tee ~/.signature-quote
participants (2)
-
Alexander Nasonov
-
Ralf W. Grosse-Kunstleve