summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2011-04-28 18:39:00 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2011-04-28 18:39:00 +0000
commit103268f0a37d4cd9b65411a827697b791c2b5b53 (patch)
tree42c8a6dbc573130945aedf9e3997b15bd8ce0125
parentc13b10a6a68c6b7f53cd3289baace9ac43204db9 (diff)
downloadqpid-python-103268f0a37d4cd9b65411a827697b791c2b5b53.tar.gz
QPID-3076: fix compilation for older version of boost library.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1097571 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/broker/QueueFlowLimit.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/QueueFlowLimit.cpp b/cpp/src/qpid/broker/QueueFlowLimit.cpp
index 20679972ff..5abd7fe666 100644
--- a/cpp/src/qpid/broker/QueueFlowLimit.cpp
+++ b/cpp/src/qpid/broker/QueueFlowLimit.cpp
@@ -307,8 +307,8 @@ QueueFlowLimit *QueueFlowLimit::createLimit(Queue *queue, const qpid::framing::F
namespace {
/** pack a set of sequence number ranges into a framing::Array */
void buildSeqRangeArray(qpid::framing::Array *seqs,
- const qpid::framing::SequenceNumber first,
- const qpid::framing::SequenceNumber last)
+ const qpid::framing::SequenceNumber& first,
+ const qpid::framing::SequenceNumber& last)
{
seqs->push_back(qpid::framing::Array::ValuePtr(new Unsigned32Value(first)));
seqs->push_back(qpid::framing::Array::ValuePtr(new Unsigned32Value(last)));
@@ -329,7 +329,8 @@ void QueueFlowLimit::getState(qpid::framing::FieldTable& state ) const
ss.add(itr->first);
}
framing::Array seqs(TYPE_CODE_UINT32);
- ss.for_each(boost::bind(&buildSeqRangeArray, &seqs, _1, _2));
+ typedef boost::function<void(framing::SequenceNumber, framing::SequenceNumber)> arrayBuilder;
+ ss.for_each((arrayBuilder)boost::bind(&buildSeqRangeArray, &seqs, _1, _2));
state.setArray("pendingMsgSeqs", seqs);
}
QPID_LOG(debug, "Queue \"" << queueName << "\": flow limit replicating pending msgs, range=" << ss);