From 6220a49ff8ce9e265abba6be95f640398ecff990 Mon Sep 17 00:00:00 2001 From: tizianoGuadagnino Date: Thu, 1 Aug 2024 13:01:10 +0200 Subject: [PATCH] Try to fix windows build --- cpp/kiss_icp/core/VoxelHashMap.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/kiss_icp/core/VoxelHashMap.cpp b/cpp/kiss_icp/core/VoxelHashMap.cpp index 9789fec1..533e2c22 100644 --- a/cpp/kiss_icp/core/VoxelHashMap.cpp +++ b/cpp/kiss_icp/core/VoxelHashMap.cpp @@ -77,11 +77,11 @@ void VoxelHashMap::AddPoints(const std::vector &points) { auto search = map_.find(voxel); if (search != map_.end()) { auto &voxel_points = search.value(); - if (voxel_points.size() == max_points_per_voxel_ or - std::any_of(voxel_points.cbegin(), voxel_points.cend(), - [&](const auto &voxel_point) { - return (voxel_point - point).norm() < map_resolution; - })) { + if ((voxel_points.size() == max_points_per_voxel_) or + (std::any_of(voxel_points.cbegin(), voxel_points.cend(), + [&](const auto &voxel_point) { + return (voxel_point - point).norm() < map_resolution; + }))) { return; } voxel_points.emplace_back(point);