Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2005-06-18 11:42:04

Andy Little wrote:
> "Tobias Schwinger" <tschwinger_at_[hidden]> wrote in message
> news:d91b7f$mik$
>>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
>>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.



Boost list run by bdawes at, gregod at, cpdaniel at, john at