diff --git a/lib/ivis_opengl/culling.cpp b/lib/ivis_opengl/culling.cpp index d57102497fa..1c75831584e 100644 --- a/lib/ivis_opengl/culling.cpp +++ b/lib/ivis_opengl/culling.cpp @@ -44,7 +44,7 @@ bool isBBoxInClipSpace(const IntersectionOfHalfSpace& intersectionOfHalfSpace, c // If all points lies in the complement a half space, it can't be part of the intersection auto CheckAllPointsInSpace = [&points](const HalfSpaceCheck& predicate) { - return std::all_of(points.begin(), points.end(), [&predicate](auto v) { return !predicate(v); }); + return std::all_of(points.begin(), points.end(), [&predicate](const auto& v) { return !predicate(v); }); }; for (const auto& predicate : intersectionOfHalfSpace)