
30 Jan
2010
30 Jan
'10
11:18 a.m.
Olivier Tournaire wrote:
Hi all,
I am trying to extract the parameters types of a given function/functor in a mpl sequence. Digging boost libraries, I came across function_types, and in particular parameter_types, which might be the right tool. However, I cannot figure how to use it. Could you please help ? Suppose I have:
void foo(int, double);
And would like to generate the following sequence:
mpl::vector
How can I do that ?
You just pass the type of your function to parameters_type.
typedef typename parameter_types