diff options
author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2012-03-21 14:47:50 +0000 |
---|---|---|
committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2012-03-21 14:47:50 +0000 |
commit | a898c7d888f37500319e3d2ee1596e66f27d8e25 (patch) | |
tree | 081c533cdbb0e6e43eae0b8fe4792ee145f1e01c | |
parent | 50fd1af4605e8cfd14b272e596ce2e6e146642e3 (diff) | |
download | qpid-python-a898c7d888f37500319e3d2ee1596e66f27d8e25.tar.gz |
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
-rw-r--r-- | qpid/cpp/src/qpid/broker/MessageGroupManager.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<MessageState> MessageFifo; |