Re: [Boost-bugs] [Boost C++ Libraries] #7048: Iterator's value is not checked properly in range_run class.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7048: Iterator's value is not checked properly in range_run class.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-12-21 19:29:37


#7048: Iterator's value is not checked properly in range_run class.
-------------------------------+----------------------------
  Reporter: g.gupta@… | Owner: Joel de Guzman
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: spirit
   Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------------

Comment (by Nikita Kniazev <nok.raven@…>):

 There is no problem to decrement an end iterator, C++ Standard allows it.
 So it is preferably valid code and I see no reason to check add a check
 for end `iter != run.end()` before decrementing `--iter`.

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/7048#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-12-21 19:36:19 UTC