Commit b6f86694 by Jonathan Wakely Committed by Jonathan Wakely

deque (__gnu_debug::deque): Make base class C++11 allocator aware.

	* include/debug/deque (__gnu_debug::deque): Make base class C++11
	allocator aware.

From-SVN: r215223
parent a5d567ec
2014-09-12 Jonathan Wakely <jwakely@redhat.com> 2014-09-12 Jonathan Wakely <jwakely@redhat.com>
* include/debug/deque (__gnu_debug::deque): Make base class C++11
allocator aware.
2014-09-12 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/59603 PR libstdc++/59603
* include/bits/stl_algo.h (random_shuffle): Prevent self-swapping. * include/bits/stl_algo.h (random_shuffle): Prevent self-swapping.
* testsuite/25_algorithms/random_shuffle/59603.cc: New. * testsuite/25_algorithms/random_shuffle/59603.cc: New.
......
...@@ -43,12 +43,12 @@ namespace __debug ...@@ -43,12 +43,12 @@ namespace __debug
class deque class deque
: public __gnu_debug::_Safe_container< : public __gnu_debug::_Safe_container<
deque<_Tp, _Allocator>, _Allocator, deque<_Tp, _Allocator>, _Allocator,
__gnu_debug::_Safe_sequence, false>, __gnu_debug::_Safe_sequence>,
public _GLIBCXX_STD_C::deque<_Tp, _Allocator> public _GLIBCXX_STD_C::deque<_Tp, _Allocator>
{ {
typedef _GLIBCXX_STD_C::deque<_Tp, _Allocator> _Base; typedef _GLIBCXX_STD_C::deque<_Tp, _Allocator> _Base;
typedef __gnu_debug::_Safe_container< 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::const_iterator _Base_const_iterator;
typedef typename _Base::iterator _Base_iterator; typedef typename _Base::iterator _Base_iterator;
......
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