mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
VFPHelpers: avoid use of sstream
This commit is contained in:
parent
ff0f9c05f0
commit
ddb3f2dafb
@ -595,7 +595,9 @@ const T& getTable(const std::map<int, std::reference_wrapper<const T>>& tables,
|
|||||||
{
|
{
|
||||||
auto entry = tables.find(table_id);
|
auto entry = tables.find(table_id);
|
||||||
if (entry == tables.end()) {
|
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 {
|
else {
|
||||||
return entry->second.get();
|
return entry->second.get();
|
||||||
|
Loading…
Reference in New Issue
Block a user