typedef bool (*my_function_f)(int, double); typedef bool (__stdcall *my_function_f2)(int, double); // ^^^^^^^^^ template class TFunction; tem
You have not specialized your template for the stdcall case, i.e. you need
template class TFunction { typedef R (*func_type)(T0,T1); };
Not sure about the syntax, untested, but that should be the issue.