Boost C++ Libraries: Ticket #3701: Problems with lit() with one-character strings https://svn.boost.org/trac10/ticket/3701 <p> Hi, </p> <p> I have a rule in the grammar defined as: </p> <p> typedef qi::rule&lt;Iterator, std::string(), qi::ascii::space_type&gt; Rule; </p> <p> Next I would like to define such a rule by: </p> <p> Rule operation = lit("+") | lit("sum") </p> <p> However, this will create errors. The problem seems to be the one-character string "+". If it is changed to e.g. "++" then there is no problem. It looks like "+" is interpreted as a single character and not as a string. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3701 Trac 1.4.3 anonymous Fri, 26 Feb 2010 01:21:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3701#comment:1 https://svn.boost.org/trac10/ticket/3701#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, use string("+") instead. Regards Hartmut </p> Ticket