forked from boostorg/smart_ptr
Note added to shared_ptr(Y*, D).
[SVN r14942]
This commit is contained in:
@ -247,7 +247,10 @@ void bad()
|
||||
example, a "no-op" deallocator is useful when returning a <STRONG>shared_ptr</STRONG>
|
||||
to a statically allocated object.</EM></P>
|
||||
<P><EM>The support for custom deallocators does not impose significant overhead. Other <STRONG>
|
||||
shared_ptr</STRONG> features still require a deallocator to be kept.]</EM></P>
|
||||
shared_ptr</STRONG> features still require a deallocator to be kept.</EM></P>
|
||||
<P><EM>The requirement that the copy constructor of <b>D</b> does not throw is too strong.
|
||||
It will be removed when some core language issues are resolved (cv-qualified
|
||||
function types, partial ordering clarifications.)]</EM></P>
|
||||
<pre>shared_ptr(shared_ptr const & r); // never throws
|
||||
template<typename Y> shared_ptr(shared_ptr<Y> const & r); // never throws</pre>
|
||||
<blockquote>
|
||||
|
Reference in New Issue
Block a user