forked from TartanLlama/optional
Update mutexes
This commit is contained in:
@@ -73,7 +73,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace tl {
|
namespace tl {
|
||||||
#ifndef TL_OPTIONAL_EXPECTED_MUTEX
|
#ifndef TL_MONOSTATE_INPLACE_MUTEX
|
||||||
|
#define TL_MONOSTATE_INPLACE_MUTEX
|
||||||
/// \brief Used to represent an optional with no data; essentially a bool
|
/// \brief Used to represent an optional with no data; essentially a bool
|
||||||
class monostate {};
|
class monostate {};
|
||||||
|
|
||||||
@@ -89,7 +90,8 @@ template <class T> class optional;
|
|||||||
|
|
||||||
/// \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>
|
||||||
@@ -1650,5 +1652,4 @@ template <class T> struct hash<tl::optional<T>> {
|
|||||||
};
|
};
|
||||||
} // namespace std
|
} // namespace std
|
||||||
|
|
||||||
#define TL_OPTIONAL_EXPECTED_MUTEX
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user