[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-users
Subject: Re: [Boost-users] String Algorithm: const_cast warning in 1.33.1
From: Thorsten Ottosen <nesotto () cs ! aau ! dk>
Date: 2006-04-30 5:42:38
Message-ID: 44544E4E.8060400 () cs ! aau ! dk
[Download RAW message or body]
Roman Neuhauser wrote:
> The attached patch silences the warnings below in
> <boost/algorithm/string/split.hpp> (c++ (GCC) 3.4.4 [FreeBSD] 20050518).
>
> roman@dagan ~/codex/argv0 1016:0 > cat test.c++ #include
<boost/algorithm/string/split.hpp>
>
> int
> main()
> {
> return 0;
> }
>
> roman@dagan ~/codex/argv0 1017:0 > c++ -pedantic -Wall -Wextra
-Wcast-qual -Wwrite-strings -Wctor-dtor-privacy -Wfloat-equal -Winline
-Woverloaded-virtual -Wredundant-decls -Wsign-compare
-I/usr/local/include test.c++
> /usr/local/include/boost/range/detail/implementation_help.hpp: In
function `Char* boost::range_detail::str_end(Char*) [with Char = char]':
> /usr/local/include/boost/range/end.hpp:98: instantiated from here
> /usr/local/include/boost/range/detail/implementation_help.hpp:58:
warning: cast from `const char*' to `char*' discards qualifiers from
pointer target type
> /usr/local/include/boost/range/detail/implementation_help.hpp: In
function `Char* boost::range_detail::str_end(Char*) [with Char = wchar_t]':
> /usr/local/include/boost/range/end.hpp:103: instantiated from here
> /usr/local/include/boost/range/detail/implementation_help.hpp:58:
warning: cast from `const wchar_t*' to `wchar_t*' discards qualifiers
from pointer target type
That is an error in Range. Please make sure to put that in the headline.
This is already fixed in CVS. Please remember to check the CVS before
submitting a patch. And if it still there, generate the patch using the
CVS version.
Thanks
-Thorsten
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic