From -6852062681071243585
X-Google-Thread: f78e5,480a31feed3c6a1b
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.gamma.ru!Gamma.RU!colt.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: petebecker@acm.org (Pete Becker)
Newsgroups: comp.std.c++
Subject: Re: boost::shared_ptr revisited again
Date: Wed,  8 Jun 2005 18:14:43 GMT
Organization: Dinkumware, Ltd
Lines: 22
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <NP2dnc6CF9AugzrfRVn-hQ@rcn.net>
References: <4299DE64.40403@poczta.onet.pl><3g55jqFajuhcU1@news.dfncis.de>   <d7o5b6$3g3$1@nemesis.news.tpi.pl>   <ou0oe.1880$wy1.4@newssvr13.news.prodigy.com>   <d83jvq$s44$1@nemesis.news.tpi.pl> <1118238125.540876.286870@g43g2000cwa.googlegroups.com>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1118254489 7638 158.152.254.254 (8 Jun 2005 18:14:49 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 8 Jun 2005 18:14:49 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-DMCA-Complaints-To: abuse@rcn.net
X-Accept-Language: en-us, en
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Path: comp-std-cpp-robomod!not-for-mail
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j58IEhs7008246;
	Thu, 9 Jun 2005 04:14:43 +1000 (EST)
X-NNTP-Posting-Date: Wed, 08 Jun 2005 11:37:07 -0500
X-TN-Interface: 209.99.127.20
X-Delivered-To: std-c++@ucar.edu
X-Postfilter: 1.3.32
X-Authentication-Warning: serv1.gc.dca.giganews.com: news set sender to poster@giganews.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:5043

kanze@gabi-soft.fr wrote:
> 
> There's also the possibility of shared_ptr itself deleting the
> object prematurely, because someone has created the shared_ptr
> twice from the same raw pointer, or from this.  (The
> boost::shared_ptr has a mechanism which allows creating a
> shared_ptr from this, but you have to explicitly use it.)
> 

That mechanism is also present in TR1's shared_ptr.

-- 

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



