Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 3 years ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Boost 1.79.0
C++11
no pedantic
Raw compiler options
-fno-elide-constructors

Author

anonymous

about 3 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-gcc-12.1.0/include -std=c++11 -fno-elide-constructors
prog.cc: In function 'void drop(Foo)':
prog.cc:18:15: warning: unused parameter 'foo' [-Wunused-parameter]
   18 | void drop(Foo foo) {
      |           ~~~~^~~
Ctor
Move ctor
drop called
Exit Code:
0