Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 3 years ago

Language

C++

Compiler

gcc 11.1.0

Options
Warnings
Optimization
Boost 1.78.0
C++17
-pedantic
Raw compiler options
-fno-elide-constructors

Author

anonymous

about 3 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.78.0-gcc-11.1.0/include -std=c++17 -pedantic -fno-elide-constructors
prog.cc: In copy constructor 'A::A(const A&)':
prog.cc:10:16: warning: unused parameter 'other' [-Wunused-parameter]
   10 |     A(const A& other) { cout << "copy constructor" << endl; }
      |       ~~~~~~~~~^~~~~
before f()
constructor
after f()
destructor
Exit Code:
0