Re: [Boost-bugs] [Boost C++ Libraries] #9650: intrusive list with stateful value traits

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9650: intrusive list with stateful value traits
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-14 10:23:49


#9650: intrusive list with stateful value traits
-------------------------+-------------------------------------------------
  Reporter: Matei | Owner: igaztanaga
  David <matei@…> | Status: new
      Type: Bugs | Component: intrusive
 Milestone: To Be | Severity: Problem
  Determined | Keywords: intrusive list iterator_to with
   Version: Boost | stateful traits
  1.55.0 |
Resolution: |
-------------------------+-------------------------------------------------

Comment (by igaztanaga):

 Thanks for the report. The bug is also present in other containers, which
 shows that stateful value traits are not properly tested.

 I also think that all "to_value_ptr" and "to_node_ptr" functions should be
 const as they are used to implement iterators (and operator-> is a const
 function and must call "to_value_ptr" with a non-const node) and a
 node<->conversion should not modify the traits. Do you agree with this?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9650#comment:2>
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:15 UTC