From f4046e4d5877375578d30fb10eaf0c121f378bb7 Mon Sep 17 00:00:00 2001 From: Janis Born Date: Thu, 17 Dec 2015 14:31:42 +0100 Subject: [PATCH] fix some uses of const begin and end iterators --- src/OpenMesh/Core/Geometry/Vector11T.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Core/Geometry/Vector11T.hh b/src/OpenMesh/Core/Geometry/Vector11T.hh index acd0e11a..88464e67 100644 --- a/src/OpenMesh/Core/Geometry/Vector11T.hh +++ b/src/OpenMesh/Core/Geometry/Vector11T.hh @@ -473,7 +473,7 @@ class VectorT { /// compute L1 (Manhattan) norm Scalar l1_norm() const { return std::accumulate( - values_.cbegin() + 1, values_.end(), values_[0]); + values_.cbegin() + 1, values_.cend(), values_[0]); } /// compute l8_norm @@ -523,7 +523,7 @@ class VectorT { /// return absolute arithmetic mean Scalar mean_abs() const { - return std::accumulate(values_.cbegin() + 1, values_.end(), + return std::accumulate(values_.cbegin() + 1, values_.cend(), std::abs(values_[0]), [](const Scalar &l, const Scalar &r) { return l + std::abs(r);