From bbcb79f8e1f5ffaefacf1b8afde2ef1ba285cad5 Mon Sep 17 00:00:00 2001 From: Steven Shaw Date: Fri, 8 Dec 2006 11:30:55 +0000 Subject: Thanks Alan the static_cast does prevent the warning on rhel4/x86_64 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483943 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/lib/broker/BrokerChannel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/lib') diff --git a/cpp/lib/broker/BrokerChannel.cpp b/cpp/lib/broker/BrokerChannel.cpp index 9bbdcabfc9..e5b8336b25 100644 --- a/cpp/lib/broker/BrokerChannel.cpp +++ b/cpp/lib/broker/BrokerChannel.cpp @@ -204,7 +204,7 @@ void Channel::ack(u_int64_t deliveryTag, bool multiple){ throw InvalidAckException(); }else if(multiple){ ack_iterator end = ++i; - for_each(unacked.begin(), end, bind2nd(mem_fun_ref(&DeliveryRecord::discard), 0)); + for_each(unacked.begin(), end, bind2nd(mem_fun_ref(&DeliveryRecord::discard), static_cast(0))); unacked.erase(unacked.begin(), end); //recalculate the prefetch: -- cgit v1.2.1