Language
C++
Compiler
gcc HEAD 12.0.0 20210721 (experimental)
Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b seta
seta const
setb
setb const
Exit Code:
0
Author
anonymous
almost 5 years ago
C++
gcc HEAD 12.0.0 20210721 (experimental)
Author
anonymous
almost 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b prog.cc: In member function 'void A::seta(int) const':
prog.cc:16:19: warning: unused parameter 'a' [-Wunused-parameter]
16 | void seta(int a) const {std::cout << __FUNCTION__ <<" const"<< std::endl;}
| ~~~~^
seta
seta const
setb
setb const