File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
libcxx/include/__type_traits Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,11 @@ inline const bool __is_unbounded_array_v<_Tp[]> = true;
25
25
26
26
#if _LIBCPP_STD_VER >= 20
27
27
28
- template <class >
29
- struct _LIBCPP_NO_SPECIALIZATIONS is_unbounded_array : false_type {};
30
-
31
- _LIBCPP_DIAGNOSTIC_PUSH
32
- # if __has_warning("-Winvalid-specialization")
33
- _LIBCPP_CLANG_DIAGNOSTIC_IGNORED (" -Winvalid-specialization" )
34
- # endif
35
28
template <class _Tp >
36
- struct is_unbounded_array <_Tp[]> : true_type {};
37
- _LIBCPP_DIAGNOSTIC_POP
29
+ struct _LIBCPP_NO_SPECIALIZATIONS is_unbounded_array : bool_constant<__is_unbounded_array_v<_Tp>> {};
38
30
39
31
template <class _Tp >
40
- _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_unbounded_array_v = is_unbounded_array <_Tp>::value ;
32
+ _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_unbounded_array_v = __is_unbounded_array_v <_Tp>;
41
33
42
34
#endif
43
35
You can’t perform that action at this time.
0 commit comments