Language
C++
Compiler
clang HEAD 18.0.0 (https://github.com/llvm/llvm-project.git 57a0416e0e8ccd522d4242dbe5d0d7893864a10a)
Options
Warnings
Don't Use Boost
C++2b
no pedantic
Raw compiler options
-std=c++2c
$ clang++ prog.cc -Wall -Wextra -std=c++2b -std=c++2c
Destructor called 3.
Destructor called 4.
Destructor called 2.
Destructor called 1.
Exit Code:
0