From 8103817985239538437
X-Google-Thread: f78e5,d860fade7481e4d8
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: v.haisman@sh.cvut.cz (Vaclav Haisman)
Newsgroups: comp.std.c++
Subject: Re: tr1::shared_ptr and boost::shared_ptr
Date: Wed, 19 Apr 2006 03:57:03 GMT
Organization: Czech Technical University
Lines: 17
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <e23nul$fsu$1@ns.felk.cvut.cz>
References: <1145386359.445242.255260@i39g2000cwa.googlegroups.com>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1145419030 26904 158.152.254.254 (19 Apr 2006 03:57:10 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 19 Apr 2006 03:57:10 +0000 (UTC)
X-Original-To: std-c++@mailman.ucar.edu
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Thunderbird 1.5 (Windows/20051201)
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
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 k3J3v38d026425;
	Wed, 19 Apr 2006 13:57:03 +1000 (EST)
X-NNTP-Posting-Date: Tue, 18 Apr 2006 22:07:17 +0000 (UTC)
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:1603

Axter wrote:
> What was the justification for the tr1 shared_ptr not to allow a custom
> deleter like the boost::shared_ptr?
> 
Huh, without custom deleter it would be so much less useful. I find it
useful for wrapping simple C stuff like FILE* and gdImage* with fclose()
resp. gdImageDestroy() as custom deleter.

--
VH

---
[ 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.comeaucomputing.com/csc/faq.html                      ]



