[Boost-bugs] [Boost C++ Libraries] #3721: list::sort() doesn't work if value traits are stateful

Subject: [Boost-bugs] [Boost C++ Libraries] #3721: list::sort() doesn't work if value traits are stateful
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-05 09:40:26


#3721: list::sort() doesn't work if value traits are stateful
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: intrusive
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 list::sort() uses temporary lists, constructed in this way:

 list_impl carry;
 list_impl counter[64];

 the list_impl constructor takes the value traits of the list as an
 optional argument, which must be passed in case the value traits are
 stateful.

 I think it should be

 list_impl carry(get_real_value_traits());

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3721>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC