Template problems: No matching function for call
- by Nick Sweet
I'm trying to create a template class, and when I define a non-member template function, I get the "No matching function for call to randvec()" error.
I have a template class defined as:
template <class T>
class Vector {
T x, y, z;
public:
//constructors
Vector();
Vector(const T& x, const T& y, const T& z);
Vector(const…