I have a class which look likes below:
template<typename T>
class Set{
public:
bool contains(const T& e) const;
};
When i make a member of this class into an another class which is:
class Dfa {
private:
Set<string> F;
public:
bool accepts() const
{
string temp;
return F.contains(temp);
}
};
Well, these r just some functions and function statements of the actual class. Can anybody please tell me why do i get the error:
[Linker error] undefined reference to `Set<std::string>::contains(std::string const&) const'
when i compile it and how can i fix this error. Thanks