In my set.h file - template(class T):
template<class T>
class set
{
public:
void add(const T& item);
private:
}
#include "set.template"
In my set.template file:
template<class T>
void set<T>::add(const T& item)
In my main.cc file (where cset1 and cset2 are both set<char>):
cset1.unian(cset2);
The error:
error: no matching function for call to ‘set<char>::unian(set<char>&)’
note: candidates are: void set<T>::unian(const T&) [with T = char]
This happens throughout my program for all other functions (saying that its using set<char> or later in my program, set<Date> instead of T). Any ideas?