From 9008c974499a74ab1616aee252904b7d0699fe99 Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Wed, 21 Mar 2012 14:47:50 +0000 Subject: QPID-3899: fix the const-ness of the < operator. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1303411 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/MessageGroupManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/MessageGroupManager.h b/cpp/src/qpid/broker/MessageGroupManager.h index 66c3d9ab5d..340ebbc56a 100644 --- a/cpp/src/qpid/broker/MessageGroupManager.h +++ b/cpp/src/qpid/broker/MessageGroupManager.h @@ -52,7 +52,7 @@ class MessageGroupManager : public StatefulQueueObserver, public MessageDistribu bool acquired; MessageState() : acquired(false) {} MessageState(const qpid::framing::SequenceNumber& p) : position(p), acquired(false) {} - bool operator<(const MessageState& b) { return position < b.position; } + bool operator<(const MessageState& b) const { return position < b.position; } }; typedef std::deque MessageFifo; -- cgit v1.2.1