Subject: [Boost-bugs] [Boost C++ Libraries] #12138: Lex plain token range is always 1 token only
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-19 07:03:23
#12138: Lex plain token range is always 1 token only
------------------------------+---------------------
Reporter: edaskel@⦠| Owner: djowel
Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
Version: Boost 1.61.0 | Severity: Problem
Keywords: |
------------------------------+---------------------
There's a bug in plain_token_range such that only the "min" value is
checked. It's pretty easy to see it at plain_token.hpp:162. Only "idmin"
and not "idmax" participates in the range check:
{{{
if (id_type(idmin) >= t.id() && id_type(idmin) <= t.id())
}}}
The fix is to replace the first occurrence of "idmin" in that line with
"idmax".
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12138> 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:20 UTC