Boost logo

Boost :

Subject: [boost] [spirit] How to detect Spirit.Qi expressions?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-03-30 08:52:18


Is there a way to detect at compile time that a certain type is a
Boost.Spirit.Qi parser? That includes template expressions and grammars.
Basically, I want to detect if qi::parse(b, e, expr) would be a sensible thing
to do.

I tried this:

    typename proto::domain_of< ExpressionT >::type,

But domain_of returns default_domain for Boost.Spirit.Qi template expressions.

Boost list run by bdawes at, gregod at, cpdaniel at, john at