We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d32c2 commit 897b270Copy full SHA for 897b270
libcxx/include/__type_traits/rank.h
@@ -19,11 +19,11 @@
19
20
_LIBCPP_BEGIN_NAMESPACE_STD
21
22
-// TODO: Enable using the builtin __array_rank when https://llvm.org/PR57133 is resolved
23
-#if __has_builtin(__array_rank) && 0
+#if __has_builtin(__array_rank) && !defined(_LIBCPP_COMPILER_CLANG_BASED) || \
+ (defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 2001)
24
25
template <class _Tp>
26
-struct rank : integral_constant<size_t, __array_rank(_Tp)> {};
+struct _LIBCPP_NO_SPECIALIZATIONS rank : integral_constant<size_t, __array_rank(_Tp)> {};
27
28
#else
29
0 commit comments