|
Boost-Commit : |
From: igaztanaga_at_[hidden]
Date: 2008-07-05 18:45:32
Author: igaztanaga
Date: 2008-07-05 18:45:31 EDT (Sat, 05 Jul 2008)
New Revision: 47121
URL: http://svn.boost.org/trac/boost/changeset/47121
Log:
Ticket #2073: slist::swap doesn't work properly under certain conditions
Text files modified:
trunk/boost/intrusive/detail/common_slist_algorithms.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/intrusive/detail/common_slist_algorithms.hpp
==============================================================================
--- trunk/boost/intrusive/detail/common_slist_algorithms.hpp (original)
+++ trunk/boost/intrusive/detail/common_slist_algorithms.hpp 2008-07-05 18:45:31 EDT (Sat, 05 Jul 2008)
@@ -76,7 +76,7 @@
static void transfer_after(node_ptr p, node_ptr b, node_ptr e)
{
- if (p != b && p != e) {
+ if (p != b && p != e && b != e) {
node_ptr next_b = NodeTraits::get_next(b);
node_ptr next_e = NodeTraits::get_next(e);
node_ptr next_p = NodeTraits::get_next(p);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk