Boost logo

Boost :

Subject: Re: [boost] Phoenix Quoting
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-12-09 17:34:10


On 12/09/2011 09:54 PM, paul Fultz wrote:
> Thanks, for the response, but wouldnt I use an actor? I want to be able to quote several variables like this:
> quote x("x");
> quote y("y");
> string s = x+ y;// s = "x + y"
>
>
> I would assume that the quote class would be an actor, but can I transform the tree with an actor? Or would I need to write an actor that outputs a string for every operator? Is there a easy way to do this?

Read the Proto documentation.
You don't need Phoenix at all (and probably can't use it to do this)


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