So I am making a my own copy of the Vector STL class. I know it is not practical this is just what I'm doing. I'm using visual studio. Here is my code...
myVector.h
namespace CS52 {
class Vector {
public:
friend std::ostream& operator<<(std::ostream&, Vector &);
};
}
myVector.cpp
#include "myVector.h"
#include <fstream>
std::ostream& CS52::Vector::operator<<(std::ostream&, CS52::Vector &)
{
// TODO: insert return statement here
}
The error I get is Class "CS52::Vector" has no member "operator<<" Thanks