iceoryx
iceoryx copied to clipboard
GenericRAII stores only a reference to cleanup function
Refactoring
- Pass a cleanup function as function_ref instead of function (but store as function as is).
- Rename into ScopeGuard
cf. https://stackoverflow.com/questions/31365013/what-is-scopeguard-in-c
Actually the cleanup function is correct on master (and a cxx function). We should still consider renaming GenericRAII to ScopeGuard.
@MatthiasKillat yes, the ScopeGuard
terminology is already used by the C++ community