diff --git a/include/tl/optional.hpp b/include/tl/optional.hpp index 4b9cee8..200825e 100644 --- a/include/tl/optional.hpp +++ b/include/tl/optional.hpp @@ -138,13 +138,13 @@ struct conjunction : std::conditional, B>::type {}; #if defined(_LIBCPP_VERSION) && __cplusplus == 201103L -#define TL_OPTIONAL_LIBCXX_MEM_FN_WORKAROUND +#define TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND #endif // 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 // in some cases. This is a check to workaround the common failing case. -#ifdef TL_OPTIONAL_LIBCXX_MEM_FN_WORKAROUND +#ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND template struct is_pointer_to_non_const_member_func : std::false_type{}; template struct is_pointer_to_non_const_member_func : std::true_type{}; @@ -167,7 +167,7 @@ template struct is_const_or_const_ref : std::true_type{}; // std::invoke from C++17 // https://stackoverflow.com/questions/38288042/c11-14-invoke-workaround template ::value && is_const_or_const_ref::value)>, #endif