From -6815975272519946307
X-Google-Thread: f78e5,d860fade7481e4d8
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news3.google.com!news.glorb.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: howard.hinnant@gmail.com (Howard Hinnant)
Newsgroups: comp.std.c++
Subject: Re: tr1::shared_ptr and boost::shared_ptr
Date: Wed, 19 Apr 2006 03:57:14 GMT
Organization: Road Runner
Lines: 37
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <howard.hinnant-225701.18295718042006@syrcnyrdrs-03-ge0.nyroc.rr.com>
References: <1145386359.445242.255260@i39g2000cwa.googlegroups.com> <49-dnXlnpcXN2tjZnZ2dnUVZ_sKdnZ2d@giganews.com> <4al25bFtp3o9U1@individual.net>
NNTP-Posting-Host: news.news.demon.net
X-Trace: news.demon.co.uk 1145419040 26920 158.152.254.254 (19 Apr 2006 03:57:20 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 19 Apr 2006 03:57:20 +0000 (UTC)
X-Original-To: std-c++@mailman.ucar.edu
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X)
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id k3J3vEXB026500;
	Wed, 19 Apr 2006 13:57:14 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-NNTP-Posting-Date: Tue, 18 Apr 2006 18:29:56 EDT
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++:1604

In article <4al25bFtp3o9U1@individual.net>,
 "Alf P. Steinbach" <alfps@start.no> wrote:

> * Pete Becker:
> > Axter wrote:
> >> What was the justification for the tr1 shared_ptr not to allow a custom
> >> deleter like the boost::shared_ptr?
> >>
> > 
> > There is none. It's part of the TR1 spec.
> 
> Oops, I didn't notice that.
>
> Is there any hope of having a custom delete function added, as with 
> boost::shared_ptr?

I'm staring at TR1 right now.  It says:

template<class T> class shared_ptr { 
public: 
..
   template<class Y, class D> shared_ptr(Y* p, D d);
..
};

Is this not custom deleter support?

Or are we mistakenly talking about custom allocators?

-Howard

---
[ 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                      ]



