This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Make std::deque meet C++11 allocator requirements


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]