Skip to content

Commit 3f119ca

Browse files
committed
Addressed review comments
1 parent 0fa7e0b commit 3f119ca

File tree

2 files changed

+78
-252
lines changed

2 files changed

+78
-252
lines changed

libcxx/include/__type_traits/is_core_convertible.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ template <class _Tp, class _Up>
3030
struct __is_core_convertible<_Tp, _Up, decltype(static_cast<void (*)(_Up)>(0)(static_cast<_Tp (*)()>(0)()))>
3131
: true_type {};
3232

33+
#if _LIBCPP_STD_VER >= 17
34+
35+
template <class _Tp>
36+
inline constexpr bool __is_convertible_to_bool_v = __is_core_convertible<_Tp, bool>::value;
37+
38+
#endif
39+
3340
#if _LIBCPP_STD_VER >= 20
3441

3542
template <class _Tp, class _Up>

0 commit comments

Comments
 (0)