diff --git a/include/cantera/base/utilities.h b/include/cantera/base/utilities.h index 8c3d6da24..a7486e540 100644 --- a/include/cantera/base/utilities.h +++ b/include/cantera/base/utilities.h @@ -107,7 +107,7 @@ template inline doublereal dot(InputIter x_begin, InputIter x_end, InputIter2 y_begin) { - return inner_product(x_begin, x_end, y_begin, 0.0); + return std::inner_product(x_begin, x_end, y_begin, 0.0); } //! Multiply elements of an array by a scale factor. @@ -234,7 +234,7 @@ template inline void normalize(InputIter begin, InputIter end, OutputIter out) { - doublereal sum = accumulate(begin, end, 0.0); + doublereal sum = std::accumulate(begin, end, 0.0); for (; begin != end; ++begin, ++out) { *out = *begin/sum; }