I keep getting this error when I compile:
And here's the operatorCode:In function 'std::ostream& operator<<(std::ostream&, User&)': error: no match for 'operator<<' in 'os << u->User::userID' note: candidates are: std::ostream& operator<<(std::ostream&, User&)
I'm not even calling the "<<" operator anywhere in my code. My code only creates three users, that's it. I can't get past compile.Code:friend std::ostream& operator<<( std::ostream& os, User& u ){ os << u.userID << " " << u.name << " " << u.systemKey << " " << u.accessKey; return os; }
Any help is most appreciated!



LinkBack URL
About LinkBacks


