15 May
2013
15 May
'13
1:26 p.m.
On 15/05/13 15:13, Oliver Kowalke wrote:
2013/5/15 Mathias Gaunard
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.
that is not possible
Then I suggest you change the design.