Defining recursive rule in local function

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Defining recursive rule in local function

Takatoshi Kondo-2

I'm using spirit x3.
When I define a recursive rule, I use BOOST_SPIRIT_DEFINE as following example:

I want to define a recursive rule in the local function not global or
namespace level. Because I want to capture function local variables to
the rule defined as a lambda expression.

However, BOOST_SPIRIT_DEFINE defines a function template, so I can't
use it in the function.

Is there any good way to define  a recursive rule in the local function?

Takatoshi Kondo

Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.
Spirit-general mailing list
[hidden email]