[PATCH] Remove redefinition of __cpp_lib_array_constexpr

Jonathan Wakely jwakely@redhat.com
Mon Sep 26 10:19:00 GMT 2016


I mistakenly defined this macro before I committed the feature, and
then we ended up with two (slightly different) definitions.

	* include/bits/range_access.h (__cpp_lib_array_constexpr): Do not
	redefine macro defined in <bits/stl_iterator.h>.

Tested powerpc64le-linux, committed to trunk.

-------------- next part --------------
commit 2ee4111bd25d1685a2e092256c85776c52b6f628
Author: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Sep 26 10:17:53 2016 +0000

    Remove redefinition of __cpp_lib_array_constexpr
    
    	* include/bits/range_access.h (__cpp_lib_array_constexpr): Do not
    	redefine macro defined in <bits/stl_iterator.h>.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240488 138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h
index 27cc8ed..95c3d52 100644
--- a/libstdc++-v3/include/bits/range_access.h
+++ b/libstdc++-v3/include/bits/range_access.h
@@ -38,10 +38,6 @@ namespace std _GLIBCXX_VISIBILITY(default)
 {
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
-#if __cplusplus >= 201402L
-# define __cpp_lib_array_constexpr 201603L
-#endif
-
   /**
    *  @brief  Return an iterator pointing to the first element of
    *          the container.


More information about the Libstdc++ mailing list