You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's what I think happens: std::ostringstream{} << x returns a std::basic_ostream<char> when it is used with a std::string, because the operator<< is defined as:
Then, we try to .str() that basic_ostream, which results in the provided error. I had never thought about the fact that operator<< would return a basic_ostream; I find that badly designed and counterintuitive. Still, I'll fix the examples.
This is with clang 3.6.0 885f51439b619bfc42e47c70bd3404ceedcf259f on Linux.
The text was updated successfully, but these errors were encountered: