compareECL: use local sstream
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
#include <opm/common/ErrorMacros.hpp>
|
#include <opm/common/ErrorMacros.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
@@ -251,8 +252,12 @@ int main(int argc, char** argv) {
|
|||||||
comparator.results_rft();
|
comparator.results_rft();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (comparator.getNoErrors() > 0)
|
if (comparator.getNoErrors() > 0) {
|
||||||
OPM_THROW(std::runtime_error, comparator.getNoErrors() << " errors encountered in comparisons.");
|
std::ostringstream str;
|
||||||
|
str << comparator.getNoErrors()
|
||||||
|
<< " errors encountered in comparisons.";
|
||||||
|
OPM_THROW(std::runtime_error, str.str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (const std::exception& e) {
|
catch (const std::exception& e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user