From 09016db3c3bf9bac9efeb97462334d45e00bc31f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 17 Aug 2002 13:05:25 +0000 Subject: [PATCH] Note added to shared_ptr(Y*, D). [SVN r14942] --- shared_ptr.htm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared_ptr.htm b/shared_ptr.htm index 1333f73..013d307 100644 --- a/shared_ptr.htm +++ b/shared_ptr.htm @@ -247,7 +247,10 @@ void bad() example, a "no-op" deallocator is useful when returning a shared_ptr to a statically allocated object.

The support for custom deallocators does not impose significant overhead. Other - shared_ptr features still require a deallocator to be kept.]

+ shared_ptr features still require a deallocator to be kept.

+

The requirement that the copy constructor of D does not throw is too strong. + It will be removed when some core language issues are resolved (cv-qualified + function types, partial ordering clarifications.)]

shared_ptr(shared_ptr const & r); // never throws
 template<typename Y> shared_ptr(shared_ptr<Y> const & r); // never throws