Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] Limiting function arity in grammar
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2008-10-02 16:36:46


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net