Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 3 years ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Optimization
Boost 1.79.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.79.0-gcc-12.1.0/include -std=c++17 -pedantic -fno-elide-constructors
prog.cc: In constructor 'test::test(int)':
prog.cc:6:10: warning: unused parameter 'p' [-Wunused-parameter]
    6 | test(int p) {
      |      ~~~~^
prog.cc: In constructor 'test::test(test&&)':
prog.cc:9:12: warning: unused parameter 'c' [-Wunused-parameter]
    9 | test(test&&c)noexcept  {
      |      ~~~~~~^
The constructor ( test(int p) ) was called: 0x7ffd7944fcbf
The constructor ( test(test && c) ) was called: 0x7ffd7944fcef
The distructor was called: 0x7ffd7944fcbf
The distructor was called: 0x7ffd7944fcef
Exit Code:
0