1

I have the following in a .hpp file

ostream& operator<<(ostream&, const Report&);

And this is my implementation in the .cpp file

ostream& operator<<(ostream &, const Report &)
{
    // Implementation
}

What's wrong with my syntax? It highlights operator and says "too many paramaters for this operator function"

Thanks!

0 Answers0