I've been working with somebody else's code and noticed that on all uses of ostringsteam they are in the habit of explicitly appending std::ends
.
This is something I've never done and have never encountered a problem.
It doesn't appear to, but should std::ends
make any difference in the following code?
ostringstream message;
message << "Hello world, version " << 2 /* << std::ends ??? */;
printf( "%s\n", message.str().c_str() );