Access function parameter types as mpl sequence?

Does boost contain a utility that can generate an mpl sequence
populated with the parameter types of a given function? I'm hoping to
avoid the pains of implementing the functionality myself.
For instance, given the function:
void Func( int, const char* );
I could generate and access an mpl::vector sequence:
mpl::vector

AMDG Dave Bonora wrote:
Does boost contain a utility that can generate an mpl sequence populated with the parameter types of a given function? I'm hoping to avoid the pains of implementing the functionality myself.
For instance, given the function:
void Func( int, const char* );
I could generate and access an mpl::vector sequence:
mpl::vector
Only if you know the type of the function. http://www.boost.org/libs/function_types In Christ, Steven Watanabe

Only if you know the type of the function.
Waw. I hadn't noticed this library, I used to use the function_traits of Boost.TypeTraits which is much more limited precisely because it doesn't expose arguments as a MPL sequence. Maybe pointing out the existence of Boost.FunctionTypes in the doc of function_traits could be good? BTW, I'm wondering if keeping function_traits makes sense as long as a specialized library exists...? Bruno

Well, merging types_traits and fusion traits into traits is maybe also somethign we should think about -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
participants (4)
-
Bruno Lalande
-
Dave Bonora
-
joel
-
Steven Watanabe