[Boost-bugs] [Boost C++ Libraries] #6714: utree::insert return begin() if position == end()

Subject: [Boost-bugs] [Boost C++ Libraries] #6714: utree::insert return begin() if position == end()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-20 13:15:38


#6714: utree::insert return begin() if position == end()
-------------------------------+--------------------------------------------
 Reporter: sairony@… | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 This seems intentional by looking at the source, but it makes
 utree::insert differ from stl in a subtle and very dangerous way. It also
 makes using insert excessively cumbersome, as you need to special case for
 position == end. Offending function is at
 BOOST/SPIRIT/HOME/SUPPORT/UTREE/DETAIL/UTREE_DETAIL2.HPP @ ~1037 ( inline
 utree::iterator utree::insert(iterator pos, T const& val) ).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6714>
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:09 UTC