summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2013-12-11 19:32:32 +0000
committerMarshall Clow <mclow.lists@gmail.com>2013-12-11 19:32:32 +0000
commitc66a611b2732e3641d2c35e9ad22a5b1e0b7a5de (patch)
tree997db8c0025a5b3ed9689ff54385019477cac60a
parenta12cd28bb3e23521ec623082c52c6c82e0a55bab (diff)
downloadbcm5719-llvm-c66a611b2732e3641d2c35e9ad22a5b1e0b7a5de.tar.gz
bcm5719-llvm-c66a611b2732e3641d2c35e9ad22a5b1e0b7a5de.zip
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
-rw-r--r--libcxx/include/iterator4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/iterator b/libcxx/include/iterator
index 1c59919ebe8..70a664d9909 100644
--- a/libcxx/include/iterator
+++ b/libcxx/include/iterator
@@ -1385,8 +1385,6 @@ operator+(typename __wrap_iter<_Iter>::difference_type __n,
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 @@ end(_Tp (&__array)[_Np])
return __array + _Np;
}
+#if !defined(_LIBCPP_HAS_NO_RVALUE_REFERENCES) && !defined(_LIBCPP_HAS_NO_TRAILING_RETURN)
+
template <class _Cp>
inline _LIBCPP_INLINE_VISIBILITY
auto
OpenPOWER on IntegriCloud