Boost logo

Boost-Commit :

From: igaztanaga_at_[hidden]
Date: 2008-07-05 18:45:37


Author: igaztanaga
Date: 2008-07-05 18:45:36 EDT (Sat, 05 Jul 2008)
New Revision: 47122
URL: http://svn.boost.org/trac/boost/changeset/47122

Log:
Ticket #2073: slist::swap doesn't work properly under certain conditions
Text files modified:
   branches/release/boost/intrusive/detail/common_slist_algorithms.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: branches/release/boost/intrusive/detail/common_slist_algorithms.hpp
==============================================================================
--- branches/release/boost/intrusive/detail/common_slist_algorithms.hpp (original)
+++ branches/release/boost/intrusive/detail/common_slist_algorithms.hpp 2008-07-05 18:45:36 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