mirror of
https://github.com/TartanLlama/expected.git
synced 2025-08-02 10:24:31 +02:00
Update mutexes
This commit is contained in:
@@ -69,7 +69,8 @@
|
|||||||
namespace tl {
|
namespace tl {
|
||||||
template <class T, class E> class expected;
|
template <class T, class E> class expected;
|
||||||
|
|
||||||
#ifndef TL_OPTIONAL_EXPECTED_MUTEX
|
#ifndef TL_MONOSTATE_INPLACE_MUTEX
|
||||||
|
#define TL_MONOSTATE_INPLACE_MUTEX
|
||||||
/// \brief Used to represent an expected with no data
|
/// \brief Used to represent an expected with no data
|
||||||
class monostate {};
|
class monostate {};
|
||||||
|
|
||||||
@@ -156,7 +157,8 @@ static constexpr unexpect_t unexpect{};
|
|||||||
|
|
||||||
/// \exclude
|
/// \exclude
|
||||||
namespace detail {
|
namespace detail {
|
||||||
#ifndef TL_OPTIONAL_EXPECTED_MUTEX
|
#ifndef TL_TRAITS_MUTEX
|
||||||
|
#define TL_TRAITS_MUTEX
|
||||||
// C++14-style aliases for brevity
|
// C++14-style aliases for brevity
|
||||||
template <class T> using remove_const_t = typename std::remove_const<T>::type;
|
template <class T> using remove_const_t = typename std::remove_const<T>::type;
|
||||||
template <class T>
|
template <class T>
|
||||||
|
Reference in New Issue
Block a user