範例

template <class T>  class MyClass {
public:
int fnc(T type);
int fnc(int b);
};

解決方案
請勿利用在執行時期可能衝突的範本參數來超載函數。

template <class T>  class MyClass {
public:
int fncType(T type);
int fncInt(int b);
};