Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58881 - sandbox/stm/branches/vbe/libs/stm/example/tx
From: vicente.botet_at_[hidden]
Date: 2010-01-10 15:40:21


Author: viboes
Date: 2010-01-10 15:40:21 EST (Sun, 10 Jan 2010)
New Revision: 58881
URL: http://svn.boost.org/trac/boost/changeset/58881

Log:
TBoost.STM vbe: polymorphic write used on smart pointers
Text files modified:
   sandbox/stm/branches/vbe/libs/stm/example/tx/list_sp.cpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: sandbox/stm/branches/vbe/libs/stm/example/tx/list_sp.cpp
==============================================================================
--- sandbox/stm/branches/vbe/libs/stm/example/tx/list_sp.cpp (original)
+++ sandbox/stm/branches/vbe/libs/stm/example/tx/list_sp.cpp 2010-01-10 15:40:21 EST (Sun, 10 Jan 2010)
@@ -86,8 +86,8 @@
                 curr = curr->next_;
             }
             if (curr==0 || (curr->value_ > val)) {
- make_write_ptr(prev)->next_=BOOST_STM_TX_NEW_PTR(_,list_node<T>(val, curr.get()));
- ++(make_write_ptr(_, this)->size_);
+ make_write_ptr<static_poly>(prev)->next_=BOOST_STM_TX_NEW_PTR(_,list_node<T>(val, curr.get()));
+ ++(make_write_ptr<static_poly>(_, this)->size_);
             }
         } BOOST_STM_END_ATOMIC
         catch (...) {
@@ -118,11 +118,11 @@
             while (curr) {
                 // if we find the node, disconnect it and end the search
                 if (curr->value_ == val) {
- make_write_ptr(prev)->next_=curr->next_;
+ make_write_ptr<static_poly>(prev)->next_=curr->next_;
                     // delete curr...
                     BOOST_STM_TX_DELETE_PTR(_,curr);
                     //--size_;
- --(make_write_ptr(_, this)->size_);
+ --(make_write_ptr<static_poly>(_, this)->size_);
                     //write_ptr<list<T> > that(_, this);
                     //++(that->size_);
                     break;


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