Subject: [Boost-bugs] [Boost C++ Libraries] #3701: Problems with lit() with one-character strings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-30 16:32:33
#3701: Problems with lit() with one-character strings
---------------------------------------------------+------------------------
Reporter: Kalle Rutanen <ilpoilves@â¦> | Owner: djowel
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: spirit
Version: Boost 1.41.0 | Severity: Problem
Keywords: |
---------------------------------------------------+------------------------
Hi,
I have a rule in the grammar defined as:
typedef qi::rule<Iterator, std::string(), qi::ascii::space_type> Rule;
Next I would like to define such a rule by:
Rule operation = lit("+") | lit("sum")
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3701> 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:01 UTC