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:
1
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:9: error: no matching member function for call to 'write_impl'
write_impl(&Stream::write, buf, len);
^~~~~~~~~~
prog.cc:63:11: note: in instantiation of member function 'writer<user_stream3>::write' requested here
w.write(buf, sizeof(buf));
^
prog.cc:22:10: note: candidate template ignored: couldn't infer template argument 'Write'
void write_impl(Write, const char* buf, size_t len)
^
1 error generated.