Overloading insertion/extraction
I am attempting to overload the stream operators for my class. I have the following code:
friend ostream& operator<<(ostream& ostr, const Stat& stat);
Which results in the following errors:
unable to resolve identifier ostream |
I'm almost positive it's a header file I need, but I haven't been able to figure out which one. Any help would be appreciated.
Nevermind...I feel retarded.
friend std::ostream& operator<<(std::ostream& ostr, const Stat& stat);
Problem solved....
Topic archived. No new replies allowed.