Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc 4.4.7

Options
Warnings
Don't Use Boost
C++0x
Raw compiler options
-fno-elide-constructors

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -W -std=c++0x -fno-elide-constructors
local
constructor: local(0x7ffd632105a0)
local=0x7ffd632105a0
destructor: local(0x7ffd632105a0)
-----
local copy
constructor: local(0x7ffd63210590)
copy constructor: (0x7ffd63210580)
local=0x7ffd63210580
destructor: local(0x7ffd63210580)
destructor: local(0x7ffd63210590)
-----
rvo
constructor: rvo(0x7ffd63210520)
copy constructor: (0x7ffd632105f0)
destructor: rvo(0x7ffd63210520)
copy constructor: (0x7ffd63210570)
destructor: rvo(0x7ffd632105f0)
returned=0x7ffd63210570
destructor: rvo(0x7ffd63210570)
-----
nrvo
constructor: nrvo(0x7ffd63210500)
copy constructor: (0x7ffd63210620)
destructor: [nrvo](0x7ffd63210500)
copy constructor: (0x7ffd63210560)
destructor: [nrvo](0x7ffd63210620)
returned=0x7ffd63210560
destructor: [nrvo](0x7ffd63210560)
Exit Code:
0