
18 Jun
2005
18 Jun
'05
4:42 p.m.
Andy Little wrote:
"Tobias Schwinger" <tschwinger@neoscientists.org> wrote in message news:d91b7f$mik$2@sea.gmane.org...
Andy Little wrote:
Note that the feed_function doesnt check the arity ( or number of elements) of
^^^ Is there a way to do this with Boost.Tuple ? If there is I was too blind to find it reading the docs and taking a brief look at its source...
boost::tuples::length<Tuple>::value I think. FWIW Its first in the advanced section of the docs.
Ah - thanks! We'll want to use this instead of function_type_arity, so default arguments work. Adding an assertion that the arity of the function is greater or equal to the number of elements in the tuple would be nice. Regards, Tobias