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_success
object 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_exit
toscope_exit<>
, orscope_exit<void(*)()>
when using a function pointer as argument. Likewise forscope_fail
andscope_success
.
Fixes:
- None