Skip to content

v0.9.0

Choose a tag to compare

@martinmoene martinmoene released this 24 Jun 10:27
· 9 commits to master since this release

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

Changes

  • Mark expected and bad_expected_access as [[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 with std::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_MEAN and nsel_CONFIG_NO_EXCEPTIONS_SEH are defined (#69, thanks @Leonezz).
  • In in-place make_unexpected(), return unexpected created via std::move() (#67, thanks @Leonezz).

Full Changelog: v0.8.0...v0.9.0