Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (experimental)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

almost 5 years ago

header.hpp

$ 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
Exit Code:
0