Boost logo

Boost Users :

From: Roman Neuhauser (neuhauser_at_[hidden])
Date: 2006-04-29 17:23:44


The attached patch silences the warnings below in
<boost/algorithm/string/split.hpp> (c++ (GCC) 3.4.4 [FreeBSD] 20050518).

roman_at_dagan ~/codex/argv0 1016:0 > cat test.c++
#include <boost/algorithm/string/split.hpp>

int
main()
{
    return 0;
}

roman_at_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

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991



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