C++ concepts

C++ · RAII

C++ RAII puzzles

3 C++ puzzles on raii. Read the snippet, guess the output, then reveal the answer and why C++ behaves that way.