cross platform throw std::out_of_range( msg.str() ); request #include <stdexcept>