15 May
2013
15 May
'13
11:25 a.m.
On 15/05/13 10:35, Oliver Kowalke wrote:
I need some help to extract the type of a callable which is passed as argument to the ctor of X.
struct X { template< typename Fn > X( Fn fn) { ... code which evaluates Fn and extracts the type of the first arg of Fn } };
You can't do that. Just change your code to not require it.