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 00c622e commit db7db68Copy full SHA for db7db68
libcxx/include/__type_traits/is_array.h
@@ -19,9 +19,8 @@
19
20
_LIBCPP_BEGIN_NAMESPACE_STD
21
22
-// TODO: Clang incorrectly reports that __is_array is true for T[0].
23
-// Re-enable the branch once https://llvm.org/PR54705 is fixed.
24
-#if __has_builtin(__is_array) && 0
+#if __has_builtin(__is_array) && \
+ (!defined(_LIBCPP_COMPILER_CLANG_BASED) || (defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 1900))
25
26
template <class _Tp>
27
struct _LIBCPP_TEMPLATE_VIS is_array : _BoolConstant<__is_array(_Tp)> {};
0 commit comments