diff --git a/ql/experimental/math/laplaceinterpolation.cpp b/ql/experimental/math/laplaceinterpolation.cpp index c9e3d1a93dd..19838b186e5 100644 --- a/ql/experimental/math/laplaceinterpolation.cpp +++ b/ql/experimental/math/laplaceinterpolation.cpp @@ -143,7 +143,7 @@ namespace QuantLib { // handling of the "corners", all second derivs are zero in the op // this directly generalizes Numerical Recipes, 3rd ed, eq 3.8.6 Real sum_corner_h = - std::accumulate(corner_h.begin(), corner_h.end(), 0.0, std::plus()); + std::accumulate(corner_h.begin(), corner_h.end(), Real(0.0), std::plus()); for (Size j = 0; j < dim.size(); ++j) { std::vector coord_j(coord); coord_j[j] = corner_neighbour_index[j];