Example

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

Solution
Do not overload functions using template parameters that could conflict at run-time.

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