How to Solve Undefined Reference to Template Class Error of C++
Recently, in my open-source project Num.NET, a problem puzzled me.
The problem
I abstract my code as below:
define.h
template<typename T>
class Methods{
public:
T methodA(T inp);
void methodB(vector<T> &inp, int c);
}
impl.cpp
template<type...
yaohui.hashnode.dev3 min read