Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2005-06-19 05:49:47


Tobias Schwinger wrote:
> Andy Little wrote:
>
>>"Tobias Schwinger" <tschwinger_at_[hidden]> wrote
>>
>>
>>
>>>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.
>>
>>
>>Unfortunately because its a pointer to a function it wont handle the
>>default args, at least not in my test above.
>>(OTOH this sounds reasonably sensible)
>
>
>
> <WHUMMM>Stupid me</WHUMM>
>
> Of course!
>
>

You can, however, check if it's a variadic function pointer and in this call
allow any number of tuple elements....

Regards,

Tobias


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk