Author
anonymous
over 7 years ago
Language
C++
Compiler
clang 4.0.0
Options
Warnings
Boost 1.64.0
C++1z(GNU)
no pedantic
Raw compiler options
-Wsign-conversion
Author
anonymous
over 7 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.64.0/clang-4.0.0/include -std=gnu++1z -Wsign-conversion
In file included from prog.cc:3:
In file included from /opt/wandbox/boost-1.64.0/clang-4.0.0/include/boost/algorithm/string.hpp:19:
In file included from /opt/wandbox/boost-1.64.0/clang-4.0.0/include/boost/algorithm/string/trim.hpp:23:
In file included from /opt/wandbox/boost-1.64.0/clang-4.0.0/include/boost/algorithm/string/classification.hpp:18:
/opt/wandbox/boost-1.64.0/clang-4.0.0/include/boost/algorithm/string/detail/classification.hpp:85:38: warning: implicit conversion changes signedness: 'typename range_difference<iterator_range<const char *> >::type' (aka 'long') to 'std::size_t' (aka 'unsigned long') [-Wsign-conversion]
std::size_t Size=::boost::distance(Range);
~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/boost-1.64.0/clang-4.0.0/include/boost/algorithm/string/classification.hpp:206:20: note: in instantiation of function template specialization 'boost::algorithm::detail::is_any_ofF<char>::is_any_ofF<boost::iterator_range<const char *> >' requested here
return detail::is_any_ofF<BOOST_STRING_TYPENAME range_value<RangeT>::type>(lit_set);
^
prog.cc:10:40: note: in instantiation of function template specialization 'boost::algorithm::is_any_of<char [2]>' requested here
boost::split(lines, output, boost::is_any_of("\n"));
^
1 warning generated.
Exit Code:
0