Boost logo

Boost :

Subject: Re: [boost] Phoenix Quoting
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-12-13 18:00:28


AMDG

On 12/08/2011 11:52 AM, paul Fultz wrote:
> Hi,
> Is there a way using Phoenix to do quoting? I would like to do something like this:
>
> quote x("x");
> string s = (x < 3 and x > 0)(); //s = "x < 3 and x > 0"
>
> Is there some kind of quote class in Phoenix or a way to create a quote class?
>

I suspect that you'd do better with raw Proto,
since the evaluation has nothing to do with
normal C++ semantics.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk