Boost C++ Libraries: Ticket #3099: Document that Space skip parser doesn't skip trailing spaces https://svn.boost.org/trac10/ticket/3099 <p> The documentation should mention that the space skip parser does not skip trailing spaces and the examples should be augmented to include the work arounds. </p> <p> <a class="ext-link" href="http://svn.boost.org/trac/boost/ticket/3086"><span class="icon">​</span>http://svn.boost.org/trac/boost/ticket/3086</a> </p> <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/3099 Trac 1.4.3 Hartmut Kaiser Mon, 01 Jun 2009 14:38:14 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3099#comment:1 https://svn.boost.org/trac10/ticket/3099#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">wontfix</span> </li> </ul> <p> That's by design. If you need post-skipping you need to modify your grammar (appending eps_p forcing a post_skip to occur): </p> <blockquote> <p> int_p &gt;&gt; eps_p; </p> </blockquote> <p> BTW: in Spirit 2.1 we exposed this as an explicit parameter to parse. </p> <p> HTH Regards Hartmut </p> Ticket Daniel James Mon, 01 Jun 2009 14:45:05 GMT status, summary changed; resolution deleted https://svn.boost.org/trac10/ticket/3099#comment:2 https://svn.boost.org/trac10/ticket/3099#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">wontfix</span> </li> <li><strong>summary</strong> <span class="trac-field-old">Space skip parser doesn't skip trailing spaces</span> → <span class="trac-field-new">Document that Space skip parser doesn't skip trailing spaces</span> </li> </ul> <p> He isn't asking for it to be fixed, he's asking for it to be documented, as he was advised to do in <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3086" title="#3086: Bugs: Space skip parser doesn't skip trailing spaces (closed: wontfix)">#3086</a>. </p> Ticket anonymous Fri, 26 Feb 2010 01:30:13 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3099#comment:3 https://svn.boost.org/trac10/ticket/3099#comment:3 <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> We won't go back to this documentation as it refers to an absolutely outdated version. Please switch to the newer versions of Spirit. </p> <p> Regards Hartmut </p> Ticket