Boost C++ Libraries: Ticket #12138: Lex plain token range is always 1 token only https://svn.boost.org/trac10/ticket/12138 <p> 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: </p> <pre class="wiki"> if (id_type(idmin) &gt;= t.id() &amp;&amp; id_type(idmin) &lt;= t.id()) </pre><p> The fix is to replace the first occurrence of "idmin" in that line with "idmax". </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12138 Trac 1.4.3 Joel de Guzman Tue, 19 Apr 2016 07:37:04 GMT <link>https://svn.boost.org/trac10/ticket/12138#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12138#comment:1</guid> <description> <p> Please file a PR. Thanks! </p> </description> <category>Ticket</category> </item> <item> <author>edaskel@…</author> <pubDate>Tue, 19 Apr 2016 20:08:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12138#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12138#comment:2</guid> <description> <p> OK! I should write a test too :) May be a little while. I have a workaround (explicit token list). </p> </description> <category>Ticket</category> </item> <item> <author>edaskel@…</author> <pubDate>Tue, 17 May 2016 01:16:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12138#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12138#comment:3</guid> <description> <p> PR submitted <a class="ext-link" href="https://github.com/boostorg/spirit/pull/191"><span class="icon">​</span>https://github.com/boostorg/spirit/pull/191</a> </p> </description> <category>Ticket</category> </item> <item> <author>edaskel@…</author> <pubDate>Thu, 05 Apr 2018 16:10:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12138#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12138#comment:4</guid> <description> <p> The PR was merged and we can close this bug :) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Thu, 22 Nov 2018 13:53:54 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12138#comment:5 https://svn.boost.org/trac10/ticket/12138#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket