Mario Gonzalez opened merge request !19: Fixed std::ostringstream errors on recent g++ versions at KOTO L3 / L3 software

Mario Gonzalez
2026-01-23T15:02:27Z

The errors are of the type

writeToDisk.cpp:91:114: error: ‘class std::basic_ostream<char>’ has no member named ‘str’
(std::ostringstream() << std::setfill('0') << std::setw(5) << std::to_string(m_RunNo)).str();

g++ (GCC) 11.5.0 seems to allow this, but I get the errors with g++ (GCC) 13.4.0. This PR fixes the code so that it compiles with the newer g++