here the code:#include <iostream>#include <string>#include <sstream>std::string operator+(const std::string& Lhs, int Rhs){ std::ostringstream Stream(Lhs, std::ios_base::out | std::ios_base::app); Stream << Rhs; return Stream.str();}int main(){ std::string str("20"); std::cout << str + 12; return 0;}And it prints 12. It should print 2012. With the ios_base::ate flag it works fine
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...