From a898c7d888f37500319e3d2ee1596e66f27d8e25 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@1303411 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/MessageGroupManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/MessageGroupManager.h b/qpid/cpp/src/qpid/broker/MessageGroupManager.h index 66c3d9ab5d..340ebbc56a 100644 --- a/qpid/cpp/src/qpid/broker/MessageGroupManager.h +++ b/qpid/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