mirror of
https://github.com/TartanLlama/expected.git
synced 2025-08-03 02:44:30 +02:00
Merge branch 'master' into fix-ci
This commit is contained in:
1
.github/workflows/cmake.yml
vendored
1
.github/workflows/cmake.yml
vendored
@@ -95,7 +95,6 @@ jobs:
|
||||
install: apt install -y clang-10
|
||||
- cxx: clang++-11
|
||||
install: apt install -y clang-11
|
||||
|
||||
|
||||
- cxx: clang++-6.0
|
||||
std: 17
|
||||
|
@@ -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>,
|
||||
|
Reference in New Issue
Block a user