From 97a7133fc8325a08560a0326f80459ec31f516f6 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Sat, 23 Nov 2013 08:52:26 +0100 Subject: [PATCH] Add const to Record less than operator in order to compile on OS X Mavericks --- src/filter_sort.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filter_sort.cpp b/src/filter_sort.cpp index e36e8cd..d6a1993 100644 --- a/src/filter_sort.cpp +++ b/src/filter_sort.cpp @@ -70,7 +70,7 @@ namespace metaproxy_1 { Record(Z_NamePlusRecord *n, const char *namespaces, const char *expr, bool debug); ~Record(); - bool operator < (const Record &rhs); + bool operator < (const Record &rhs) const; }; class Sort::RecordList : boost::noncopyable { Odr_oid *syntax; @@ -286,7 +286,7 @@ yf::Sort::Record::~Record() { } -bool yf::Sort::Record::operator < (const Record &rhs) +bool yf::Sort::Record::operator < (const Record &rhs) const { if (strcmp(this->score.c_str(), rhs.score.c_str()) < 0) return true; -- 1.7.10.4