mirror of
https://github.com/TartanLlama/optional.git
synced 2025-08-02 11:24:26 +02:00
Add missing define
This commit is contained in:
@@ -139,6 +139,10 @@ template <class B, class... Bs>
|
|||||||
struct conjunction<B, Bs...>
|
struct conjunction<B, Bs...>
|
||||||
: std::conditional<bool(B::value), conjunction<Bs...>, B>::type {};
|
: std::conditional<bool(B::value), conjunction<Bs...>, B>::type {};
|
||||||
|
|
||||||
|
#if defined(_LIBCPP_VERSION) && __cplusplus == 201103L
|
||||||
|
#define TL_OPTIONAL_LIBCXX_MEM_FN_WORKAROUND
|
||||||
|
#endif
|
||||||
|
|
||||||
// In C++11 mode, there's an issue in libc++'s std::mem_fn
|
// In C++11 mode, there's an issue in libc++'s std::mem_fn
|
||||||
// which results in a hard-error when using it in a noexcept expression
|
// which results in a hard-error when using it in a noexcept expression
|
||||||
// in some cases. This is a check to workaround the common failing case.
|
// in some cases. This is a check to workaround the common failing case.
|
||||||
|
Reference in New Issue
Block a user