VFPHelpers: avoid use of sstream

This commit is contained in:
Arne Morten Kvarving 2023-01-02 15:24:35 +01:00
parent ff0f9c05f0
commit ddb3f2dafb

View File

@ -595,7 +595,9 @@ const T& getTable(const std::map<int, std::reference_wrapper<const T>>& tables,
{
auto entry = tables.find(table_id);
if (entry == tables.end()) {
OPM_THROW(std::invalid_argument, "Nonexistent VFP table " << table_id << " referenced.");
OPM_THROW(std::invalid_argument,
"Nonexistent VFP table " +
std::to_string(table_id) + " referenced.");
}
else {
return entry->second.get();