File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
libcxx/include/__type_traits Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,16 @@ _LIBCPP_BEGIN_NAMESPACE_STD
6767template <class ... _Args>
6868using __invoke_result_t = decltype (__builtin_invoke(std::declval<_Args>()...));
6969
70+ template <class , class ... _Args>
71+ struct __invoke_result_impl {};
72+
7073template <class ... _Args>
71- struct __invoke_result {
74+ struct __invoke_result_impl < __void_t < __invoke_result_t <_Args...> >, _Args...> {
7275 using type _LIBCPP_NODEBUG = __invoke_result_t <_Args...>;
73- };
76+ }
77+
78+ template <class ... _Args>
79+ using __invoke_result = __invoke_result_impl<void , _Args...>;
7480
7581template <class ... _Args>
7682_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR __invoke_result_t <_Args...> __invoke (_Args&&... __args)
@@ -353,7 +359,7 @@ struct __invoke_result
353359template <class _Func , class ... _Args>
354360using __invoke_result_t _LIBCPP_NODEBUG = typename __invoke_result<_Func, _Args...>::type;
355361
356- #if _LIBCPP_STD_VER >= 17
362+ # if _LIBCPP_STD_VER >= 17
357363
358364// is_invocable
359365
You can’t perform that action at this time.
0 commit comments