Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: