|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60908 - sandbox/transaction/boost/transact
From: vicente.botet_at_[hidden]
Date: 2010-03-28 21:02:36
Author: viboes
Date: 2010-03-28 21:02:35 EDT (Sun, 28 Mar 2010)
New Revision: 60908
URL: http://svn.boost.org/trac/boost/changeset/60908
Log:
Boost.Transact:
* Correct error with MSVC V9Express with typename
Text files modified:
sandbox/transaction/boost/transact/simple_transaction_manager.hpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Modified: sandbox/transaction/boost/transact/simple_transaction_manager.hpp
==============================================================================
--- sandbox/transaction/boost/transact/simple_transaction_manager.hpp (original)
+++ sandbox/transaction/boost/transact/simple_transaction_manager.hpp 2010-03-28 21:02:35 EDT (Sun, 28 Mar 2010)
@@ -1,4 +1,5 @@
// Copyright Stefan Strasser 2010.
+// Copyright Vicente J. Botet Escriba 2010.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
@@ -77,6 +78,8 @@
typedef typename Resource::tag type;
};
+ typedef typename Resource::tag resource_tag_t;
+
/// \brief Constructs a simple_transaction_manager
simple_transaction_manager(){}
@@ -87,17 +90,17 @@
}
/// TODO doc, not part of the concept
- static void disconnect_resource(typename Resource::tag tag=typename Resource::tag()){
+ static void disconnect_resource(resource_tag_t tag= resource_tag_t()){
res=0;
}
- static Resource &resource(typename Resource::tag tag=typename Resource::tag()){
+ static Resource &resource(resource_tag_t tag= resource_tag_t()){
if(res) return *res;
else throw resource_error();
}
static typename Resource::transaction &
- resource_transaction(transaction &tx,typename Resource::tag tag=typename Resource::tag()){
+ resource_transaction(transaction &tx,resource_tag_t tag= resource_tag_t()){
if(tx.rtx) return *tx.rtx;
else throw resource_error();
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk