Severity Code Description Project File Line Suppression State
Error C2784 'bool f(A,B,bool (__cdecl *)(A,B))': could not deduce template argument for'bool (__cdecl *)(A,B)' from 'overloaded-function'
yes its true, I know my mistake but I don't know how can I solve it?
Function pointer typedef (pre C++11) can't be templated directly but indirectly through a struct, alternatively try the using keyword of C++11 (commented out in below code):