I have the following code:

std::stringstream ss;
ss << 1 << "a b c";
std::string result;
ss >> result;
std::cout << result << std::endl;

I see "1a" instead of "1a b c".

I read somewhere that I should have ss << std::noskip. But it doesn't help.

Any idea?

Thanks in advance.

Edit
Report