From 12c6d1fbe40d83d9a51f19d22f3fe49d288cf3d4 Mon Sep 17 00:00:00 2001 From: Zoltan Szabadka Date: Wed, 15 Oct 2014 13:33:56 +0200 Subject: [PATCH] Apply const qualifier to call operator of comparator class. --- enc/cluster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enc/cluster.h b/enc/cluster.h index 855a88d..60ce7f1 100644 --- a/enc/cluster.h +++ b/enc/cluster.h @@ -42,7 +42,7 @@ struct HistogramPair { }; struct HistogramPairComparator { - bool operator()(const HistogramPair& p1, const HistogramPair& p2) { + bool operator()(const HistogramPair& p1, const HistogramPair& p2) const { if (p1.cost_diff != p2.cost_diff) { return p1.cost_diff > p2.cost_diff; }