[boost-users][functiontypes]

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. Thank you.

Bind expressions have no arity. It is possible to call them with the number of parameters which is greater than the highest placeholder number.

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
participants (3)
-
Alexader
-
Germán Diago
-
Steven Watanabe