
On Jun 15, 2007, at 2:34 PM, Eric Niebler wrote:
Eric Niebler wrote:
Maurizio Vitale wrote:
if you could find a way to completely hide the fact that a terminal is a unary_expr from the user I think it would be much cleaner for a boost::proto release.
I now have some ideas about how to add nullary expressions to proto. I'll investigate.
Proto terminals are now nullary expressions. The change is that terminal<int>::type used to be:
expr<tag::terminal, args1<int>, 1>
and now it is:
expr<tag::terminal, args0<int>, 0>
Everything else stays pretty much the same. This is a breaking change, so watch out.
Thanks Eric. My code and the testcases I have work fine, what should I be on the lookout for? I didn't change anything in my code, patterns are what they were and access to the terminal data is through unmodified proto::arg{,_c} Regards, Maurizio