summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/BrokerChannel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/broker/BrokerChannel.cpp')
-rw-r--r--cpp/lib/broker/BrokerChannel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/lib/broker/BrokerChannel.cpp b/cpp/lib/broker/BrokerChannel.cpp
index 5673a2c42a..5897914f26 100644
--- a/cpp/lib/broker/BrokerChannel.cpp
+++ b/cpp/lib/broker/BrokerChannel.cpp
@@ -264,7 +264,7 @@ void Channel::ack(uint64_t firstTag, uint64_t lastTag){
throw ConnectionException(530, "Received ack for unrecognised delivery tag");
}else if(i!=j){
ack_iterator end = ++i;
- for_each(j, end, mem_fun_ref(&DeliveryRecord::discard));
+ for_each(j, end, bind2nd(mem_fun_ref(&DeliveryRecord::discard), 0));
unacked.erase(unacked.begin(), end);
//recalculate the prefetch: