@@ -138,13 +138,13 @@ struct conjunction<B, Bs...>
138138 : std::conditional<bool (B::value), conjunction<Bs...>, B>::type {};
139139
140140#if defined(_LIBCPP_VERSION) && __cplusplus == 201103L
141- #define TL_OPTIONAL_LIBCXX_MEM_FN_WORKAROUND
141+ #define TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
142142#endif
143143
144144// In C++11 mode, there's an issue in libc++'s std::mem_fn
145145// which results in a hard-error when using it in a noexcept expression
146146// in some cases. This is a check to workaround the common failing case.
147- #ifdef TL_OPTIONAL_LIBCXX_MEM_FN_WORKAROUND
147+ #ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
148148template <class T > struct is_pointer_to_non_const_member_func : std::false_type{};
149149template <class T , class Ret , class ... Args>
150150struct is_pointer_to_non_const_member_func <Ret (T::*) (Args...)> : std::true_type{};
@@ -167,7 +167,7 @@ template <class T> struct is_const_or_const_ref<T const> : std::true_type{};
167167// std::invoke from C++17
168168// https://stackoverflow.com/questions/38288042/c11-14-invoke-workaround
169169template <typename Fn, typename ... Args,
170- #ifdef TL_OPTIONAL_LIBCXX_MEM_FN_WORKAROUND
170+ #ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
171171 typename = enable_if_t <!(is_pointer_to_non_const_member_func<Fn>::value
172172 && is_const_or_const_ref<Args...>::value)>,
173173#endif
0 commit comments