From 55c5bc68d5eb2c5e38b024cd483b57411feeca90 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 2 Jan 2023 08:46:32 +0100 Subject: [PATCH] PengRobinson: remove use of sstream --- opm/material/eos/PengRobinson.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/opm/material/eos/PengRobinson.hpp b/opm/material/eos/PengRobinson.hpp index a578c73a7..d3ea4e1a1 100644 --- a/opm/material/eos/PengRobinson.hpp +++ b/opm/material/eos/PengRobinson.hpp @@ -37,7 +37,7 @@ #include #include -#include +#include namespace Opm { @@ -381,9 +381,11 @@ protected: return; } - std::ostringstream oss; - oss << "Could not determine the critical point for a=" << a << ", b=" << b; - throw NumericalProblem(oss.str()); + const std::string msg = + "Could not determine the critical point for a=" + + std::to_string(getValue(a)) + + ", b=" + std::to_string(getValue(b)); + throw NumericalProblem(msg); } if (findExtrema_(minVm, maxVm, minP, maxP, a, b, T - delta)) {