Re: [Boost-bugs] [Boost C++ Libraries] #5566: Spirit.Lex converting a token to its value in a lexer semantic action fails

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5566: Spirit.Lex converting a token to its value in a lexer semantic action fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-11 17:37:51


#5566: Spirit.Lex converting a token to its value in a lexer semantic action fails
------------------------------------------+---------------------------------
  Reporter: Reko Tiira <reko@…> | Owner: hkaiser
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: spirit
   Version: Boost 1.46.1 | Severity: Problem
Resolution: fixed | Keywords:
------------------------------------------+---------------------------------

Comment (by hkaiser):

 Replying to [comment:4 Gilles <gillesb68@…>]:
> What I see from the token's variant is that the value replaces the pair
 of iterators pointing to the matched input sequence. Is there a way to
 store the converted value and, in the same time, keeping the pair of
 iterators pointing to the matched input sequence ?

 Yes, simply use position_token instead of the plain token class.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5566#comment:5>
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:12 UTC