3 ms·
Anyone know what these guidelines are talking about when they refer to a 'final_action' object, or the function/keyword 'finally'? I'm referring to E.19. I coul
by usefulcat 9y ago
Anyone know what these guidelines are talking about when they refer to a 'final_action' object, or the function/keyword 'finally'? I'm referring to E.19. I could not get the example below to compile even using the newest gcc with -std=c++1y at godbolt.org. It seems potentially useful, if it actually exists.
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Re-finally https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC...
- nuxi 9y agoIt's supposed to be part of "Guideline support library", see this section: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#S-gsl https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC... The only implementation so far seems to be from Microsoft: https://github.com/Microsoft/GSL/blob/master/include/gsl/gsl_util https://github.com/Microsoft/GSL/blob/master/include/gsl/gsl...
- jhasse 9y agoYou can write finally yourself like this: https://github.com/jhasse/jngl/blob/master/src/jngl/Finally.cpp https://github.com/jhasse/jngl/blob/master/src/jngl/Finally....