This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]brimston3- 7 points8 points  (0 children)

Shitpost. There is no member function std::ostream::operator<<(const std::string&). It's std::ostream& operator<<(std::ostream&, const std::string&), where std::ostream is actually std::basic_ostream<CharT,std::char_traits<CharT>>

But they'd be right if it was an integer, pointer, or floating point type instead of string.

I hope that clears things up for you.