Hello, i got in trouble once again, this time in excersise 14-4 in Accelerated C++.
When i compile i get an error message that you probably know.
fatal error LNK1169: one or more multiply defined symbols found
Can anyone see what i am missing here? Edit: This is all in the .hpp file with the class that uses the functions.
template<class T>
T* clone(const T* tp)
{
return tp->clone();
}
template<>
std::vector<char>* clone(const std::vector<char>* vp)
{
return new std::vector<char>(*vp);
}