Skip to content

Commit faffb4e

Browse files
committed
Fix no_specializations test
1 parent 635d6ef commit faffb4e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

libcxx/include/__type_traits/invoke.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,33 +131,35 @@ inline const bool __is_nothrow_invocable_r_v =
131131
// is_invocable
132132

133133
template <class _Fn, class... _Args>
134-
struct is_invocable : bool_constant<__is_invocable_v<_Fn, _Args...> > {};
134+
struct _LIBCPP_NO_SPECIALIZATIONS is_invocable : bool_constant<__is_invocable_v<_Fn, _Args...> > {};
135135

136136
template <class _Ret, class _Fn, class... _Args>
137-
struct is_invocable_r : bool_constant<__is_invocable_r_v<_Ret, _Fn, _Args...>> {};
137+
struct _LIBCPP_NO_SPECIALIZATIONS is_invocable_r : bool_constant<__is_invocable_r_v<_Ret, _Fn, _Args...>> {};
138138

139139
template <class _Fn, class... _Args>
140-
inline constexpr bool is_invocable_v = __is_invocable_v<_Fn, _Args...>;
140+
_LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_invocable_v = __is_invocable_v<_Fn, _Args...>;
141141

142142
template <class _Ret, class _Fn, class... _Args>
143-
inline constexpr bool is_invocable_r_v = is_invocable_r<_Ret, _Fn, _Args...>::value;
143+
_LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_invocable_r_v = is_invocable_r<_Ret, _Fn, _Args...>::value;
144144

145145
// is_nothrow_invocable
146146

147147
template <class _Fn, class... _Args>
148-
struct is_nothrow_invocable : bool_constant<__is_nothrow_invocable_v<_Fn, _Args...> > {};
148+
struct _LIBCPP_NO_SPECIALIZATIONS is_nothrow_invocable : bool_constant<__is_nothrow_invocable_v<_Fn, _Args...> > {};
149149

150150
template <class _Ret, class _Fn, class... _Args>
151-
struct is_nothrow_invocable_r : integral_constant<bool, __is_nothrow_invocable_r_v<_Ret, _Fn, _Args...>> {};
151+
struct _LIBCPP_NO_SPECIALIZATIONS is_nothrow_invocable_r
152+
: integral_constant<bool, __is_nothrow_invocable_r_v<_Ret, _Fn, _Args...>> {};
152153

153154
template <class _Fn, class... _Args>
154-
inline constexpr bool is_nothrow_invocable_v = __is_nothrow_invocable_v<_Fn, _Args...>;
155+
_LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_nothrow_invocable_v = __is_nothrow_invocable_v<_Fn, _Args...>;
155156

156157
template <class _Ret, class _Fn, class... _Args>
157-
inline constexpr bool is_nothrow_invocable_r_v = __is_nothrow_invocable_r_v<_Ret, _Fn, _Args...>;
158+
_LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_nothrow_invocable_r_v =
159+
__is_nothrow_invocable_r_v<_Ret, _Fn, _Args...>;
158160

159161
template <class _Fn, class... _Args>
160-
struct invoke_result : __invoke_result<_Fn, _Args...> {};
162+
struct _LIBCPP_NO_SPECIALIZATIONS invoke_result : __invoke_result<_Fn, _Args...> {};
161163

162164
template <class _Fn, class... _Args>
163165
using invoke_result_t = __invoke_result_t<_Fn, _Args...>;

0 commit comments

Comments
 (0)