Skip to content

Commit 358c5fa

Browse files
committed
Fix for mac compile test 2.
1 parent 2d0c3f6 commit 358c5fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PWGCF/Tasks/correlations.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,10 +930,12 @@ struct CorrelationTask {
930930
void processMixedDerivedT(CollType const& collisions, TrackTypes&&... tracks)
931931
{
932932
auto getMultiplicity =
933-
[](auto& col) {
933+
[this](auto& col) {
934934
if constexpr (std::experimental::is_detected<HasMultSet, CollType>::value) {
935935
if (!passOutlier(col))
936936
return -1.0f;
937+
} else {
938+
(void)this; // fix compile error on unused 'this' capture
937939
}
938940
return col.multiplicity();
939941
};

0 commit comments

Comments
 (0)