I have this error
vect.hpp:13:33: error: declaration of ‘operator<<’ as non-function
for the code :
#include <iostream>
template<unsigned d>
class Vect{
protected:
double * coord;
public:
Vect() {for(int i=0, i<d, i++){*(coord+i)=0;}}
~Vect(){delete coord; coord=nullptr;}
Vect(const Vect &);
double operator=(const Vect &);
double operator[](unsigned i) const{return *(coord+i);}
friend std::ostream & operator<< <>(std::ostream &, const Vect<d> &);
};
for the line :
friend std::ostream & operator<< <>(std::ostream &, const Vect<d> &);