Releases: martinmoene/scope-lite
Releases · martinmoene/scope-lite
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_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
0.1.0
This is the first non-alpha release of scope lite. It contains the following changes with respect to v0.1.0-alpha.
Changes:
- Allow for cooperation with Boost
uncaught_exceptions.hpp
for libc++ (#3, thanks @Pesa). - Add Visual Studio 2019 to the Appveyor build matrix (nonstd lite project issue 47).
- Add tests for move-construction.
Fixes:
- Fix
noexcept
for__cxa_get_globals()
on FreeBSD/OpenBSD (#3, thanks @Pesa). - Improve varied declaration of
__cxa_get_globals()
(#3, thanks @Pesa). - Unconditionally include
<cxxabi.h>
for libstdc++ (#3, thanks @Pesa). - Swap comments regarding libc++ and libstdc++ (#3, thanks @Pesa).
- Prevent clang warning in unique_resource (#2, thanks @Pesa).
- Use namespace
std11
foris_nothrow_move_constructible
(VC10).
0.1.0-alpha
First alpha release of scope lite.
Feedback welcome :)