Repository navigation
v0.9.0
Release 0.9.0 of expected lite introduces marking expected and bad_expected_access as [[nodiscard]] at default. This behaviour can be controlled via nsel_CONFIG_NO_NODISCARD, see section Configuration. See also Mark as [[nodiscard]] over at nonstd-lite project.
It contains the following:
Additions
- Add configuration
nsel_CONFIG_NO_NODISCARD(#74, thanks @Quuxplusone). - Add configuration
nsel_CONFIG_WIN32_LEAN_AND_MEAN(#69, thanks @No-needto-recall).
Changes
- Mark
expectedandbad_expected_accessas[[nodiscard]](default) (#74, thanks @Quuxplusone) - Target all versions of
value()for suppression of MSVC warning C4702 (#81, thanks @rconde01). - Increment minimum required CMake version to 3.15 of 2020 (#71, thanks @oschonrock).
- Remove unsupported C++98, C++03 from compilation script.
- Introduce
std11::addressof(#70, thanks @DNKpp). - In Readme, update sections 'Algorithms for
unexpected_type' and A.2 'Expected lite test specification' (#67). - Update in-place version of
make_unexpected, add it for use withstd::expected, add test (#67). - Add inplace version of
make_unexpected(#68, thanks @Leonezz).
Fixes
- Readme: Fix link to license (#78, thanks @dennisschagt).
- Fix failing MSVC build on GitHub Actions (#80, thanks @striezel).
- Fix failing Clang builds on GitHub Actions (#79, thanks @striezel).
- Fix Expected transform (#76, thanks @gogagum).
- Only use
[[maybe_unused]]with C++17 and later (#73). - Silence Visual C++ warning 'discarded return value' in expected.t.cpp(1347) (#74, thanks @Quuxplusone).
- Replace deprecated
.value()usage within expected's own code (#73, thanks @Quuxplusone). - Silence Clang warnings about unused variables. NFC (#73, thanks @Quuxplusone).
- Make sure
nsel_CONFIG_WIN32_LEAN_AND_MEANandnsel_CONFIG_NO_EXCEPTIONS_SEHare defined (#69, thanks @Leonezz). - In
in-placemake_unexpected(), returnunexpectedcreated viastd::move()(#67, thanks @Leonezz).
Full Changelog: v0.8.0...v0.9.0