Update mutexes

This commit is contained in:
Simon Brand
2017-11-27 12:24:28 +00:00
parent e65b3d6fe4
commit 92f6fee49a

View File

@@ -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>