From e139cb908acc36a6ef0ec86e99db939eb1206fc7 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 2 Aug 2013 21:08:22 +0000 Subject: QPID-4327: HA Fix windows compile errors introduced by recent commits. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1509861 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/ha/TxReplicator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/ha/TxReplicator.cpp') diff --git a/cpp/src/qpid/ha/TxReplicator.cpp b/cpp/src/qpid/ha/TxReplicator.cpp index 0a524c8ced..3b53cf9886 100644 --- a/cpp/src/qpid/ha/TxReplicator.cpp +++ b/cpp/src/qpid/ha/TxReplicator.cpp @@ -47,11 +47,11 @@ namespace qpid { namespace ha { using namespace std; -using namespace boost; using namespace qpid::broker; using namespace qpid::framing; using qpid::broker::amqp_0_10::MessageTransfer; using qpid::types::Uuid; +using boost::make_shared; namespace { const string QPID_HA(QPID_HA_PREFIX); @@ -87,7 +87,7 @@ TxReplicator::TxReplicator( logPrefix = "Backup of transaction "+shortId+": "; if (!store) throw Exception(QPID_MSG(logPrefix << "No message store loaded.")); - boost::shared_ptr backup = dynamic_pointer_cast(hb.getRole()); + boost::shared_ptr backup = boost::dynamic_pointer_cast(hb.getRole()); if (!backup) throw Exception(QPID_MSG(logPrefix << "Broker is not in backup mode.")); brokerReplicator = backup->getBrokerReplicator(); @@ -195,7 +195,7 @@ void TxReplicator::DequeueState::addRecords(const EventMap::value_type& entry) { boost::shared_ptr TxReplicator::DequeueState::makeAccept() { for_each(events.begin(), events.end(), boost::bind(&TxReplicator::DequeueState::addRecords, this, _1)); - return make_shared(cref(recordIds), ref(records)); + return boost::make_shared(boost::cref(recordIds), boost::ref(records)); } void TxReplicator::prepare(const string&, sys::Mutex::ScopedLock& l) { -- cgit v1.2.1