
6 Feb
2010
6 Feb
'10
7:44 a.m.
Manjunath Kudlur wrote:
This gets cumbersome when I have more Var<> types. Is there a way to not list each Var<> type in the grammar? That is, I want to match any Var<T> and just call the _var_tostr(proto::_value) transform. How can I accomplish this?
Try that: struct var_tostr : proto::or_< proto::when<proto::terminal<variables::Var<proto::_> >, _var_tostr(proto::_value)> {}; -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35