
22 Sep
2008
22 Sep
'08
7:04 p.m.
Is it possible to use function_traits to decompose functors? Specifically is this supposed to work? void test_helper( int a ) { } template< class Handler > void test( Handler h ) { typedef typename boost::function_traits<Handler>::arg1_type ArgType; } int main() { test( boost::bind(&test_helper,_1) ); } Thanks, -- Michael Marcin