drop use of deprecated std::bind1first

This commit is contained in:
Arne Morten Kvarving 2024-07-02 20:39:54 +02:00
parent e88e13c3e9
commit 5ceff8284a

View File

@ -478,7 +478,7 @@ try
// to avoid division by zero and to avoid special handling of negative
// capillary pressure in the code above.
std::transform(Pvalues.begin(), Pvalues.end(), Pvalues.begin(),
std::bind1st(std::multiplies<double>(), surfaceTension));
[surfaceTension](const double val) { return val*surfaceTension; });
/*
* Step 9a: Verify results