I have a template which looks something like this:
template< typename T, void (*f)( T& param )>
class SomeAction
{
...
};
f
is used inside SomeAction
(actually f
is a class member, but I don't think it's matter).
Question is: can this be improved by removing 'typename T' from template parameters list and let compiler to deduce that type?
Thanks!