From: Dennis Schafroth Date: Sat, 23 Nov 2013 07:52:26 +0000 (+0100) Subject: Add const to Record less than operator in order to compile on OS X Mavericks X-Git-Tag: v1.4.3~5^2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=97a7133fc8325a08560a0326f80459ec31f516f6;p=metaproxy-moved-to-github.git Add const to Record less than operator in order to compile on OS X Mavericks --- 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;