Commit 95724bd5 authored by Dominik Charousset's avatar Dominik Charousset

removed useless to_string in ostringstream usage

parent ae663f84
......@@ -52,7 +52,7 @@ void throw_io_failure(const char* what, bool add_errno_failure) {
if (add_errno_failure) {
std::ostringstream oss;
oss << what << ": " << strerror(errno)
<< " [errno: " << std::to_string(errno) << "]";
<< " [errno: " << errno << "]";
throw std::ios_base::failure(oss.str());
}
throw std::ios_base::failure(what);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment