From b42228c00f9dc10570309a32af17e647e7ea7680 Mon Sep 17 00:00:00 2001 From: Attila Krasznahorkay Date: Tue, 7 Jan 2025 15:15:26 +0100 Subject: [PATCH] Make the measurement comparison functors const-correct. Which is necessary for using them with oneDPL. --- core/include/traccc/edm/measurement.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/include/traccc/edm/measurement.hpp b/core/include/traccc/edm/measurement.hpp index 015345df6..74195b6b3 100644 --- a/core/include/traccc/edm/measurement.hpp +++ b/core/include/traccc/edm/measurement.hpp @@ -1,6 +1,6 @@ /** TRACCC library, part of the ACTS project (R&D line) * - * (c) 2022-2024 CERN for the benefit of the ACTS project + * (c) 2022-2025 CERN for the benefit of the ACTS project * * Mozilla Public License Version 2.0 */ @@ -88,14 +88,14 @@ inline bool operator==(const measurement& lhs, const measurement& rhs) { /// Comparator based on detray barcode value struct measurement_sort_comp { TRACCC_HOST_DEVICE - bool operator()(const measurement& lhs, const measurement& rhs) { + bool operator()(const measurement& lhs, const measurement& rhs) const { return lhs.surface_link < rhs.surface_link; } }; struct measurement_equal_comp { TRACCC_HOST_DEVICE - bool operator()(const measurement& lhs, const measurement& rhs) { + bool operator()(const measurement& lhs, const measurement& rhs) const { return lhs.surface_link == rhs.surface_link; } };