Language
C++
Compiler
clang 8.0.0
Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic
Raw compiler options
-Wconversion
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/clang-8.0.0/include -std=gnu++2a -Wconversion
Exit Code:
0
Author
anonymous
about 6 years ago
C++
clang 8.0.0
Author
anonymous
about 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/clang-8.0.0/include -std=gnu++2a -Wconversion
prog.cc:18:23: warning: implicit conversion changes signedness: 'size_t' (aka 'unsigned long') to 'std::streamsize' (aka 'long') [-Wsign-conversion]
s_.write(buf, len);
~~~~~ ^~~
prog.cc:50:11: note: in instantiation of member function 'writer<user_stream2>::write' requested here
w.write(buf, sizeof(buf));
^
prog.cc:18:23: warning: implicit conversion changes signedness: 'size_t' (aka 'unsigned long') to 'std::__1::streamsize' (aka 'long') [-Wsign-conversion]
s_.write(buf, len);
~~~~~ ^~~
prog.cc:64:11: note: in instantiation of member function 'writer<std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::write' requested here
w.write(buf, sizeof(buf));
^
2 warnings generated.