Language
C++
Compiler
gcc HEAD 10.0.0 20190710 (experimental)
Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
Exit Code:
0
Author
anonymous
almost 6 years ago
C++
gcc HEAD 10.0.0 20190710 (experimental)
Author
anonymous
almost 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc: In member function 'void Bar::function(const Foo&)':
prog.cc:19:32: warning: unused parameter 'f' [-Wunused-parameter]
19 | void function ( const Foo& f ) {
| ~~~~~~~~~~~^
prog.cc: In function 'void otherFunction(std::function<void(Bar&, const Foo&)>)':
prog.cc:28:66: warning: unused parameter 'fuction' [-Wunused-parameter]
28 | void otherFunction ( std::function<void ( Bar& , const Foo& ) > fuction ) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~