I am overloading another operator and am getting an error message that I understand, it's message is clear, but I am not sure how to remedy the issue.
Here is the error:
In function `std::ostream& operator<<(std::ostream&, const Results&)':
175: error: redefinition of `std::ostream& operator<<(std::ostream&, const Results&)'
167: error: `std::ostream& operator<<(std::ostream&, const Results&)' previously defined here
Code in header file for both operators I am overloading. These are not members of the class:
I tried using other names within the .cpp file and it has a fit saying that I can't use it because it's type isn't declared - or something to that effect.
@vlad
I see your point though - in other words - I can get it to work if I just get rid of the last operator function. I just wondered if there is some way to use both; that I am somehow not understanding/figuring it out?