diff options
| author | Alan Conway <aconway@apache.org> | 2013-08-05 16:35:03 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-08-05 16:35:03 +0000 |
| commit | bdf10fe22c76c941c585de90ba55f549cadc217f (patch) | |
| tree | f09f4e518dfa9369520d4543a230441fb0d868cd /cpp/src/qpid/ha/TxReplicator.cpp | |
| parent | fb5035f7e1462ccf52c67b0c77e2cb1db24c47d0 (diff) | |
| download | qpid-python-bdf10fe22c76c941c585de90ba55f549cadc217f.tar.gz | |
NO-JIRA: Remove use of boost::make_shared, not availble on some older versions.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1510596 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/ha/TxReplicator.cpp')
| -rw-r--r-- | cpp/src/qpid/ha/TxReplicator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/qpid/ha/TxReplicator.cpp b/cpp/src/qpid/ha/TxReplicator.cpp index 3b53cf9886..2c45752dcc 100644 --- a/cpp/src/qpid/ha/TxReplicator.cpp +++ b/cpp/src/qpid/ha/TxReplicator.cpp @@ -39,7 +39,6 @@ #include "qpid/log/Statement.h" #include <boost/shared_ptr.hpp> #include <boost/bind.hpp> -#include <boost/make_shared.hpp> #include "qpid/broker/amqp_0_10/MessageTransfer.h" #include "qpid/framing/MessageTransferBody.h" @@ -51,7 +50,6 @@ 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); @@ -195,7 +193,8 @@ void TxReplicator::DequeueState::addRecords(const EventMap::value_type& entry) { boost::shared_ptr<TxAccept> TxReplicator::DequeueState::makeAccept() { for_each(events.begin(), events.end(), boost::bind(&TxReplicator::DequeueState::addRecords, this, _1)); - return boost::make_shared<TxAccept>(boost::cref(recordIds), boost::ref(records)); + return boost::shared_ptr<TxAccept>( + new TxAccept(boost::cref(recordIds), boost::ref(records))); } void TxReplicator::prepare(const string&, sys::Mutex::ScopedLock& l) { |
