【发布时间】:2017-10-28 20:44:06
【问题描述】:
我有这门课:
class A{
template<typename Type = int32_t> Type b(){}
template<typename Type = int32_t> Type b(Type a, Type b){}
}
我想获得函数b<int>()和b<int>(int, int)的指针
我试过了,但它不知道该选哪一个:
auto t = (void (A::*)(int,int))(&A::template b<int>);
【问题讨论】:
标签: c++ templates pointers overloading