Skip to content

Commit

Permalink
comparator needs to be const for set::find
Browse files Browse the repository at this point in the history
That was not enforced in earlier standards.
  • Loading branch information
v4hn committed Aug 19, 2024
1 parent ab72fe8 commit 0b87d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leg_detector/include/leg_detector/laser_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct CompareSample
{
CompareSample() {}

inline bool operator()(const Sample* a, const Sample* b)
inline bool operator()(const Sample* a, const Sample* b) const
{
return (a->index < b->index);
}
Expand Down

0 comments on commit 0b87d6e

Please sign in to comment.