$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r71685 - sandbox/block_ptr/boost
From: phil_at_[hidden]
Date: 2011-05-02 21:09:30
Author: pbouchard
Date: 2011-05-02 21:09:30 EDT (Mon, 02 May 2011)
New Revision: 71685
URL: http://svn.boost.org/trac/boost/changeset/71685
Log:
* Added explicit function to detect cyclicism
Text files modified:
sandbox/block_ptr/boost/block_ptr.hpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: sandbox/block_ptr/boost/block_ptr.hpp
==============================================================================
--- sandbox/block_ptr/boost/block_ptr.hpp (original)
+++ sandbox/block_ptr/boost/block_ptr.hpp 2011-05-02 21:09:30 EDT (Mon, 02 May 2011)
@@ -382,10 +382,15 @@
{
release(false);
}
+
+ bool cyclic() const
+ {
+ return ps_->redir()->destroy_;
+ }
~block_ptr()
{
- if (ps_->redir()->destroy_)
+ if (cyclic())
base::po_ = 0;
else
release(true);