Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9580: [spirit.lex] self("state") += calls a wrong operator +=
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-29 08:20:13
#9580: [spirit.lex] self("state") += calls a wrong operator +=
--------------------------------------+---------------------
Reporter: Vyacheslav Andrejev | Owner: hkaiser
Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+---------------------
Comment (by Vyacheslav Andrejev):
I found a workaround:
{{{
#!cpp
auto lex_def = this->self("SOME_STATE");
auto expr = (lex_def += someTokenDef);
}}}
With this change the output is
{{{
Arity = 0, should be 0
token_id_ = 65536, should be 65536
unique_id_ = 0, should be 0
token_state_ = 1, should be 1
}}}
I checked the WAR with GCC 4.8 and MSVC 12.0.
Any clue what is going on?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9580#comment:3> 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:15 UTC