Merge branch 'release-4-6'
[alexxy/gromacs.git] / src / gromacs / gmxlib / thread_mpi / system_error.cpp
index 428aebe256e27483a809e2184a5cc7b9b66de2ad..88bcb84f8bad7f979341e3cf7f97e03376b8a8b5 100644 (file)
 #include <cstring>
 #include <cstdlib>
 #include <stdexcept>
+#include <string>
 #include "thread_mpi/system_error.h"
 
 tMPI::system_error::system_error(error_code ec)
-    : runtime_error(std::strerror(ec)), ec_(ec)
+    : runtime_error(std::string(std::strerror(ec))), ec_(ec)
 {
 }