Boost C++ Libraries: Ticket #3086: Space skip parser doesn't skip trailing spaces https://svn.boost.org/trac10/ticket/3086 <pre class="wiki">#include &lt;cassert&gt; #include &lt;boost/spirit/include/classic.hpp&gt; using namespace BOOST_SPIRIT_CLASSIC_NS; int main() { parse_info&lt;&gt; result = parse(" 5 ", int_p, space_p); assert(result.full); return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3086 Trac 1.4.3 zaravalle@… Wed, 27 May 2009 09:09:42 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3086#comment:1 https://svn.boost.org/trac10/ticket/3086#comment:1 <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">invalid</span> </li> </ul> <p> AFAIK, parser should skip spaces until reaching the int, and should consume while reading the int and stop after that. So, it should not skip trailing spaces in this case. </p> Ticket OlafvdSpek@… Wed, 27 May 2009 10:21:33 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/3086#comment:2 https://svn.boost.org/trac10/ticket/3086#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">invalid</span> </li> </ul> <blockquote class="citation"> <p> AFAIK, parser should </p> </blockquote> <p> Why? </p> Ticket anonymous Wed, 27 May 2009 10:28:18 GMT <link>https://svn.boost.org/trac10/ticket/3086#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3086#comment:3</guid> <description> <p> Guys, please see <a class="ext-link" href="http://spirit.sourceforge.net/"><span class="icon">​</span>http://spirit.sourceforge.net/</a> and the note in red titled: Post-skips </p> </description> <category>Ticket</category> </item> <item> <author>OlafvdSpek@…</author> <pubDate>Wed, 27 May 2009 10:56:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3086#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3086#comment:4</guid> <description> <p> I don't agree with that work around, but it should at least be mentioned in the Spirit documentation and examples. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 27 May 2009 12:58:25 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3086#comment:5 https://svn.boost.org/trac10/ticket/3086#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Feel free to voice out your objection to spirit's mailing list. FWIW, the new spirit2 has some defaults that does post skipping and a flag parameter to disable it. Unfortunately, we do not intend to change the behavior for "classic" spirit anymore since it is now in maintenance mode. But then again, I urge you to voice out your concern if you really need to. In the meantime, I'll be closing this ticket. </p> Ticket OlafvdSpek@… Wed, 27 May 2009 12:59:36 GMT <link>https://svn.boost.org/trac10/ticket/3086#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3086#comment:6</guid> <description> <p> What about this part? </p> <blockquote class="citation"> <p> but it should at least be mentioned in the Spirit documentation and examples. </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 27 May 2009 13:03:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3086#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3086#comment:7</guid> <description> <p> Noted. Please add a trac ticket for this. </p> </description> <category>Ticket</category> </item> <item> <author>OlafvdSpek@…</author> <pubDate>Wed, 27 May 2009 13:06:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3086#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3086#comment:8</guid> <description> <p> Eh, this *is* a trac ticket, isn't it? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 27 May 2009 13:09:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3086#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3086#comment:9</guid> <description> <p> Yes, but it is the wrong ticket. You want documentation and examples, not bug fixing. It is better to have another "support" related trac ticket asking exactly what you want. Otherwise, this will flag the wrong message. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 27 May 2009 13:13:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3086#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3086#comment:10</guid> <description> <p> Done: <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/3099"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/3099</a> </p> <p> It would be way easier if existing reports could just be reassigned... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 27 May 2009 13:39:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3086#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3086#comment:11</guid> <description> <p> Thank you. </p> </description> <category>Ticket</category> </item> </channel> </rss>