Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik...
by einpoklum on Sunday October 30, 2022 @02:22PM
(#33397132)
A count of the number of exceptions in-flight was added, replacing the boolean indication of whether an exception is in-flight. This allows the scope guard construct proposed by Andrei Alexandrescu to distinguish between a scope being left on success and on an exception being thrown.
YouTube video about scope guard: https://www.youtube.com/watch?v=WjTrfoiB0MQ
Description of the change to the standard: https://isocpp.org/files/papers/N4152.pdf
Can you elaborate on this?