summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/debug
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-22 10:20:09 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-22 10:20:09 +0000
commitde3a389ce5453ea9d13ced67bffd03d5c62a6406 (patch)
tree23300684f67214241d748e4894426e990589a41e /libstdc++-v3/include/debug
parent14fe2d6c65c1137b8aa9f743f5f07342b628e517 (diff)
downloadgcc-de3a389ce5453ea9d13ced67bffd03d5c62a6406.tar.gz
2006-02-22 Paolo Carlini <pcarlini@suse.de>
* include/debug/list (splice): Remove splice_alloc check, redundant after implementing the splice bits of N1599. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111361 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/debug')
-rw-r--r--libstdc++-v3/include/debug/list15
1 files changed, 8 insertions, 7 deletions
diff --git a/libstdc++-v3/include/debug/list b/libstdc++-v3/include/debug/list
index 989376677f4..0f5ef6ed905 100644
--- a/libstdc++-v3/include/debug/list
+++ b/libstdc++-v3/include/debug/list
@@ -1,6 +1,6 @@
// Debugging list implementation -*- C++ -*-
-// Copyright (C) 2003, 2004, 2005
+// Copyright (C) 2003, 2004, 2005, 2006
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -307,9 +307,10 @@ namespace __debug
splice(iterator __position, list& __x, iterator __i)
{
__glibcxx_check_insert(__position);
- _GLIBCXX_DEBUG_VERIFY(__x.get_allocator() == this->get_allocator(),
- _M_message(__gnu_debug::__msg_splice_alloc)
- ._M_sequence(*this)._M_sequence(__x, "__x"));
+
+ // We used to perform the splice_alloc check: not anymore, redundant
+ // after implementing the relevant bits of N1599.
+
_GLIBCXX_DEBUG_VERIFY(__i._M_dereferenceable(),
_M_message(__gnu_debug::__msg_splice_bad)
._M_iterator(__i, "__i"));
@@ -332,9 +333,9 @@ namespace __debug
_M_message(__gnu_debug::__msg_splice_other)
._M_sequence(__x, "x")
._M_iterator(__first, "first"));
- _GLIBCXX_DEBUG_VERIFY(__x.get_allocator() == this->get_allocator(),
- _M_message(__gnu_debug::__msg_splice_alloc)
- ._M_sequence(*this)._M_sequence(__x));
+
+ // We used to perform the splice_alloc check: not anymore, redundant
+ // after implementing the relevant bits of N1599.
for (iterator __tmp = __first; __tmp != __last; )
{