Skip to content

Commit dab51f1

Browse files
authored
Merge pull request acts-project#807 from krasznaa/MeasurementSortFix-main-20250107
Measurement Comparison Fix, main branch (2025.01.07.)
2 parents 8620769 + b42228c commit dab51f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/include/traccc/edm/measurement.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** TRACCC library, part of the ACTS project (R&D line)
22
*
3-
* (c) 2022-2024 CERN for the benefit of the ACTS project
3+
* (c) 2022-2025 CERN for the benefit of the ACTS project
44
*
55
* Mozilla Public License Version 2.0
66
*/
@@ -88,14 +88,14 @@ inline bool operator==(const measurement& lhs, const measurement& rhs) {
8888
/// Comparator based on detray barcode value
8989
struct measurement_sort_comp {
9090
TRACCC_HOST_DEVICE
91-
bool operator()(const measurement& lhs, const measurement& rhs) {
91+
bool operator()(const measurement& lhs, const measurement& rhs) const {
9292
return lhs.surface_link < rhs.surface_link;
9393
}
9494
};
9595

9696
struct measurement_equal_comp {
9797
TRACCC_HOST_DEVICE
98-
bool operator()(const measurement& lhs, const measurement& rhs) {
98+
bool operator()(const measurement& lhs, const measurement& rhs) const {
9999
return lhs.surface_link == rhs.surface_link;
100100
}
101101
};

0 commit comments

Comments
 (0)