Skip to content

Commit 497c915

Browse files
committed
Next try
1 parent d4f582d commit 497c915

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

libcxx/include/__type_traits/invoke.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ template <class _Ret, class _Fn, class... _Args>
157157
inline constexpr bool is_nothrow_invocable_r_v = __is_nothrow_invocable_r_v<_Ret, _Fn, _Args...>;
158158

159159
template <class _Fn, class... _Args>
160-
struct invoke_result {
161-
using type = __invoke_result_t<_Fn, _Args...>;
162-
};
160+
struct invoke_result : __invoke_result<_Fn, _Args...> {};
163161

164162
template <class _Fn, class... _Args>
165163
using invoke_result_t = __invoke_result_t<_Fn, _Args...>;

libcxx/include/__type_traits/is_core_convertible.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ concept __core_convertible_to = __is_core_convertible<_Tp, _Up>::value;
3737

3838
#endif // _LIBCPP_STD_VER >= 20
3939

40-
template <class _Tp, class _Up, bool = true, bool = __is_core_convertible<_Tp, _Up>::value>
40+
template <class _Tp, class _Up, bool = __is_core_convertible<_Tp, _Up>::value>
4141
inline const bool __is_nothrow_core_convertible_v = false;
4242

4343
#ifndef _LIBCPP_CXX03_LANG
4444
template <class _Tp, class _Up>
45-
inline const bool __is_nothrow_core_convertible_v<_Tp,
46-
_Up,
47-
noexcept(static_cast<void (*)(_Up)>(0)(static_cast<_Tp (*)()>(0)())),
48-
true> = true;
45+
inline const bool __is_nothrow_core_convertible_v<_Tp, _Up, true> =
46+
noexcept(static_cast<void (*)(_Up) noexcept>(0)(static_cast<_Tp (*)() noexcept>(0)()));
4947
#endif
5048

5149
_LIBCPP_END_NAMESPACE_STD

0 commit comments

Comments
 (0)