
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? ----- Original Message ----- From: Mathias Gaunard <mathias.gaunard@ens-lyon.org> To: boost@lists.boost.org Cc: Sent: Thursday, December 8, 2011 3:09 PM Subject: Re: [boost] Phoenix Quoting On 12/08/2011 08:52 PM, 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?
What you want is a Proto transform that converts a tree to a string. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost