Language
C++
Compiler
gcc HEAD 8.0.0 20170825 (experimental)
Options
Warnings
Boost 1.65.0
C++1z(GNU)
-pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.0/gcc-head/include -std=gnu++1z -pedantic
Main object created!
Constructor called.
Constructor called.
Copy constructor called.
Copy constructor called.
Destructor called.
Destructor called.
Number is: 1
Main object destroyed!
Destructor called.
Destructor called.
Exit Code:
0