Move std::begin(array) and std::end(array) out from under an #ifdef that was preventing people from building libc++ using gcc. This corrects a mistake that I introduced in r196058
llvm-svn: 197061
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: c66a611b2732e3641d2c35e9ad22a5b1e0b7a5de
diff --git a/include/iterator b/include/iterator
index 1c59919..70a664d 100644
--- a/include/iterator
+++ b/include/iterator
@@ -1385,8 +1385,6 @@
return __x;
}
-#if !defined(_LIBCPP_HAS_NO_RVALUE_REFERENCES) && !defined(_LIBCPP_HAS_NO_TRAILING_RETURN)
-
template <class _Tp, size_t _Np>
inline _LIBCPP_INLINE_VISIBILITY
_Tp*
@@ -1403,6 +1401,8 @@
return __array + _Np;
}
+#if !defined(_LIBCPP_HAS_NO_RVALUE_REFERENCES) && !defined(_LIBCPP_HAS_NO_TRAILING_RETURN)
+
template <class _Cp>
inline _LIBCPP_INLINE_VISIBILITY
auto