So, I'm trying to use stringstream in my program to get some formatted string (for example, because I need to convert numbers to string).
The fact is that my program worked, and when I debug it using Visual Studio, in my Spy window I see that my stringstream buffer buffer gives (when I try to add "Framerate" to it):
"FramerateÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍýýýý" "" "" "îþîþ"
Code:
std::stringstream s; s << "Framerate";
My code will then work when I try to get the associated string ... I cannot find any explanation for this, nor a problem with my code ...
EDIT: It turns out these characters are not a problem and that the string stream returns the expected string using str() .
source share