Commit 3c523cf8 by Jonathan Wakely Committed by Jonathan Wakely

re PR libstdc++/55631 (Several ext/ headers can not be #included on their own)

	PR libstdc++/55631
	* include/ext/alloc_traits.h: Include missing header.
	* include/ext/pointer.h: Likewise.
	* include/ext/string_conversions.h: Require C++11.
	* libsupc++/initializer_list: Reindent.

From-SVN: r194429
parent ac8701fe
2012-12-11 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/55631
* include/ext/alloc_traits.h: Include missing header.
* include/ext/pointer.h: Likewise.
* include/ext/string_conversions.h: Require C++11.
* libsupc++/initializer_list: Reindent.
2012-12-10 Benjamin Kosnik <bkoz@redhat.com> 2012-12-10 Benjamin Kosnik <bkoz@redhat.com>
* doc/Makefile.am (xml_sources_manual): Add * doc/Makefile.am (xml_sources_manual): Add
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#pragma GCC system_header #pragma GCC system_header
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
# include <bits/move.h>
# include <bits/alloc_traits.h> # include <bits/alloc_traits.h>
#else #else
# include <bits/allocator.h> // for __alloc_swap # include <bits/allocator.h> // for __alloc_swap
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <ext/cast.h> #include <ext/cast.h>
#include <ext/type_traits.h> #include <ext/type_traits.h>
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
# include <bits/move.h>
# include <bits/ptr_traits.h> # include <bits/ptr_traits.h>
#endif #endif
......
...@@ -31,6 +31,10 @@ ...@@ -31,6 +31,10 @@
#pragma GCC system_header #pragma GCC system_header
#if __cplusplus < 201103L
# include <bits/c++0x_warning.h>
#else
#include <bits/c++config.h> #include <bits/c++config.h>
#include <ext/numeric_traits.h> #include <ext/numeric_traits.h>
#include <bits/functexcept.h> #include <bits/functexcept.h>
...@@ -98,4 +102,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -98,4 +102,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_GLIBCXX_END_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION
} // namespace } // namespace
#endif // C++11
#endif // _STRING_CONVERSIONS_H #endif // _STRING_CONVERSIONS_H
...@@ -77,7 +77,7 @@ namespace std ...@@ -77,7 +77,7 @@ namespace std
// One past the last element. // One past the last element.
constexpr const_iterator constexpr const_iterator
end() const noexcept { return begin() + size(); } end() const noexcept { return begin() + size(); }
}; };
/** /**
* @brief Return an iterator pointing to the first element of * @brief Return an iterator pointing to the first element of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment