fair, but it generates a std::string .. if you want to see it, what are you going to do with it? use .c_str() ??
Stroustrup's I/O Streams is a weird dead-end C++ technology. Bjarne is probably never going to get over it, but everybody else should forget about it ASAP.
https://stackoverflow.com/questions/2753060/who-architected-...