[libcxx] r197061 - 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

Marshall Clow mclow.lists at gmail.com
Wed Dec 11 11:32:32 PST 2013


Author: marshall
Date: Wed Dec 11 13:32:32 2013
New Revision: 197061

URL: http://llvm.org/viewvc/llvm-project?rev=197061&view=rev
Log:
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

Modified:
    libcxx/trunk/include/iterator

Modified: libcxx/trunk/include/iterator
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/iterator?rev=197061&r1=197060&r2=197061&view=diff
==============================================================================
--- libcxx/trunk/include/iterator (original)
+++ libcxx/trunk/include/iterator Wed Dec 11 13:32:32 2013
@@ -1385,8 +1385,6 @@ operator+(typename __wrap_iter<_Iter>::d
     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





More information about the cfe-commits mailing list