This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Make std::deque meet C++11 allocator requirements
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Sep 2014 15:07:04 +0100
- Subject: Re: [patch] Make std::deque meet C++11 allocator requirements
- Authentication-results: sourceware.org; auth=none
- References: <20140909173103 dot GF22778 at redhat dot com>
This follow-up patch tells the debug mode deque that its std::deque
base class is a C++11 allocator aware container.
Tested x86_64-linux, committed to trunk.
commit 22ed11e31eb61d45f16b93b64b7b46e02e754b79
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Sep 12 12:55:46 2014 +0100
* include/debug/deque (__gnu_debug::deque): Make base class C++11
allocator aware.
diff --git a/libstdc++-v3/include/debug/deque b/libstdc++-v3/include/debug/deque
index 824cb28..c17a3e1 100644
--- a/libstdc++-v3/include/debug/deque
+++ b/libstdc++-v3/include/debug/deque
@@ -43,12 +43,12 @@ namespace __debug
class deque
: public __gnu_debug::_Safe_container<
deque<_Tp, _Allocator>, _Allocator,
- __gnu_debug::_Safe_sequence, false>,
+ __gnu_debug::_Safe_sequence>,
public _GLIBCXX_STD_C::deque<_Tp, _Allocator>
{
typedef _GLIBCXX_STD_C::deque<_Tp, _Allocator> _Base;
typedef __gnu_debug::_Safe_container<
- deque, _Allocator, __gnu_debug::_Safe_sequence, false> _Safe;
+ deque, _Allocator, __gnu_debug::_Safe_sequence> _Safe;
typedef typename _Base::const_iterator _Base_const_iterator;
typedef typename _Base::iterator _Base_iterator;