
2 Oct
2008
2 Oct
'08
8:36 p.m.
Eric Niebler a écrit :
You can use proto::if_ with some mpl meta-functions and proto::arity_of. See below: Ah, I missed that v_v Times to print out the new docs and pin it on my office walls
struct ArityLessThan3 : proto::or_< proto::terminal<_> , proto::and_< proto::function< proto::vararg<ArityLessThan3> > , proto::if_< mpl::less< proto::arity_of<_>, mpl::long_<4>
() > > > {}; Shouldn't it be : proto::function< _, proto::vararg<ArityLessThan3> > ? or does vararg also count the function tag ?
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35