Repository navigation
0.2.0
This release of scope lite adds the ability to use global function objects with the C++98 version (issue #4. Thanks to @hayguen).
Additions:
- Add construction of a
scope_exit,scope_fail, orscope_successobject with a global function object as parameter. See example/04-local-scope-cpp98.cpp. - Add
export()toCMakeLists.txt, enabling importing targets.
Changes:
- With C++98, the type changes from
scope_exittoscope_exit<>, orscope_exit<void(*)()>when using a function pointer as argument. Likewise forscope_failandscope_success.
Fixes:
- None