Template partial specialization for __stdcall function pointer

前端 未结 3 1780
被撕碎了的回忆
被撕碎了的回忆 2021-02-15 14:41
typedef bool (*my_function_f)(int, double);
typedef bool (__stdcall *my_function_f2)(int, double);
//            ^^^^^^^^^

template class TFunction;

tem         


        
3条回答
  •  再見小時候
    2021-02-15 15:05

    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.

提交回复
热议问题