29 Nov
2023
29 Nov
'23
4:04 p.m.
Andrey Semashev wrote:
You can think of BOOST_SCOPE_FINAL as a keyword that begins the declaration of a scope guard. The scope guard action then is what follows this keyword, and indeed it is not limited to just lambda functions.
Other languages call this "defer". E.g. defer fclose( fp ); or defer { fclose( fp ); }