Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71473 - sandbox/mm_ptr/libs/smart_ptr/example
From: phil_at_[hidden]
Date: 2011-04-24 23:17:52


Author: pbouchard
Date: 2011-04-24 23:17:51 EDT (Sun, 24 Apr 2011)
New Revision: 71473
URL: http://svn.boost.org/trac/boost/changeset/71473

Log:
* Cyclic destruction
Text files modified:
   sandbox/mm_ptr/libs/smart_ptr/example/mm_ptr_test1.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/mm_ptr/libs/smart_ptr/example/mm_ptr_test1.cpp
==============================================================================
--- sandbox/mm_ptr/libs/smart_ptr/example/mm_ptr_test1.cpp (original)
+++ sandbox/mm_ptr/libs/smart_ptr/example/mm_ptr_test1.cpp 2011-04-24 23:17:51 EDT (Sun, 24 Apr 2011)
@@ -73,7 +73,7 @@
                 mm_ptr<A> v = new mm<A>(0);
                 v->p = new mm<A>(1);
                 v->p->p = new mm<A>(2);
- v->p->p->p = new mm<A>(3);
+ v->p->p->p = v;
         }
         cout << endl;
 }


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