Skip to content

0.2.0

Latest
Compare
Choose a tag to compare
@martinmoene martinmoene released this 16 Sep 18:57
· 33 commits to master since this release

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, or scope_success object with a global function object as parameter. See example/04-local-scope-cpp98.cpp.
  • Add export() to CMakeLists.txt, enabling importing targets.

Changes:

  • With C++98, the type changes from scope_exit to scope_exit<>, or scope_exit<void(*)()> when using a function pointer as argument. Likewise for scope_fail and scope_success.

Fixes:

  • None