Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][functiontypes]
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-14 10:29:17


AMDG

Germán Diago wrote:
> Hello. I'm using boost.functiontypes and I would like if it's possible
> to extract information of arity and argument types from bind
> expressions and boost.functions

boost::function provides these as arity, arg1_type, arg2_type, etc.

There is no way to determine the arity or arguments of a bind expression,
because the answer is not unique. The function objects created by
boost::bind
a) ignore extra arguments
b) may be able to handle different types of arguments depending on
   the bound function object(s).

In Christ,
Steven Watanabe


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