Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 2 years ago

Language

C++

Compiler

gcc 12.1.0

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

Author

anonymous

over 2 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-gcc-12.1.0/include -std=gnu++2b
prog.cc: In function 'int main()':
prog.cc:42:9: warning: variable 'foo1' set but not used [-Wunused-but-set-variable]
   42 |     Foo foo1 = f(true);
      |         ^~~~
prog.cc:44:9: warning: variable 'foo2' set but not used [-Wunused-but-set-variable]
   44 |     Foo foo2 = f(false);
      |         ^~~~
prog.cc:46:9: warning: variable 'foo3' set but not used [-Wunused-but-set-variable]
   46 |     Foo foo3 = g(true);
      |         ^~~~
prog.cc:48:9: warning: variable 'foo4' set but not used [-Wunused-but-set-variable]
   48 |     Foo foo4 = g(false);
      |         ^~~~
f(true)
ctor this:0x7ffef934c94f
ctor this:0x7ffef934c94e
move this:0x7ffef934c96f ref:0x7ffef934c94f
f(false)
ctor this:0x7ffef934c94f
ctor this:0x7ffef934c94e
move this:0x7ffef934c96e ref:0x7ffef934c94e
g(true)
ctor this:0x7ffef934c94f
ctor this:0x7ffef934c94e
copy this:0x7ffef934c96d ref:0x7ffef934c94f
g(false)
ctor this:0x7ffef934c94f
ctor this:0x7ffef934c94e
copy this:0x7ffef934c96c ref:0x7ffef934c94e
Exit Code:
0