From ca78f792bb1d381c85a8e64d1768c7abe7516f70 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 5 Apr 2007 11:48:05 +0000 Subject: * Further (minor) changes to the interface between store and broker. * TxBuffer now uses shared_ptr to TxOps (removed DeletingTxOp) * Queue now persists the field table of settings git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@525801 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/broker/TxBuffer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/src/broker/TxBuffer.cpp') diff --git a/qpid/cpp/src/broker/TxBuffer.cpp b/qpid/cpp/src/broker/TxBuffer.cpp index 47bc13b5c0..c526c88c25 100644 --- a/qpid/cpp/src/broker/TxBuffer.cpp +++ b/qpid/cpp/src/broker/TxBuffer.cpp @@ -20,7 +20,8 @@ */ #include "TxBuffer.h" -using std::mem_fun; +#include +using boost::mem_fn; using namespace qpid::broker; bool TxBuffer::prepare(TransactionalStore* const store) @@ -39,17 +40,17 @@ bool TxBuffer::prepare(TransactionalStore* const store) void TxBuffer::commit() { - for_each(ops.begin(), ops.end(), mem_fun(&TxOp::commit)); + for_each(ops.begin(), ops.end(), mem_fn(&TxOp::commit)); ops.clear(); } void TxBuffer::rollback() { - for_each(ops.begin(), ops.end(), mem_fun(&TxOp::rollback)); + for_each(ops.begin(), ops.end(), mem_fn(&TxOp::rollback)); ops.clear(); } -void TxBuffer::enlist(TxOp* const op) +void TxBuffer::enlist(TxOp::shared_ptr op) { ops.push_back(op); } -- cgit v1.2.1