Merge branch 'master' into fix-ci

This commit is contained in:
Sy Brand
2025-07-12 11:49:24 +01:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -96,7 +96,6 @@ jobs:
- cxx: clang++-11
install: apt install -y clang-11
- cxx: clang++-6.0
std: 17
install: apt install -y clang-6.0

View File

@@ -132,8 +132,14 @@ struct is_trivially_copy_constructible<std::vector<T, A>> : std::false_type {};
#define TL_EXPECTED_11_CONSTEXPR constexpr
#endif
#if TL_CPLUSPLUS >= 201703L
#define TL_EXPECTED_NODISCARD [[nodiscard]]
#else
#define TL_EXPECTED_NODISCARD
#endif
namespace tl {
template <class T, class E> class [[nodiscard]] expected;
template <class T, class E> class TL_EXPECTED_NODISCARD expected;
#ifndef TL_MONOSTATE_INPLACE_MUTEX
#define TL_MONOSTATE_INPLACE_MUTEX
@@ -1276,7 +1282,7 @@ private:
/// has been destroyed. The initialization state of the contained object is
/// tracked by the expected object.
template <class T, class E>
class [[nodiscard]] expected :
class TL_EXPECTED_NODISCARD expected :
private detail::expected_move_assign_base<T, E>,
private detail::expected_delete_ctor_base<T, E>,
private detail::expected_delete_assign_base<T, E>,