mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-08-01 05:34:36 +02:00
Fixes.
[SVN r12816]
This commit is contained in:
@@ -120,7 +120,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (px == 0) // need to allocate new counter -- the cast failed
|
if (px == 0) // need to allocate new counter -- the cast failed
|
||||||
{
|
{
|
||||||
pn = detail::shared_count(static_cast<element_type *>(0), deleter());
|
pn = detail::shared_count();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ q = p;
|
|||||||
<P><B>Returns:</B> A <STRONG>shared_ptr<T></STRONG> object that stores a copy
|
<P><B>Returns:</B> A <STRONG>shared_ptr<T></STRONG> object that stores a copy
|
||||||
of <CODE><A href="../conversion/cast.htm#Polymorphic_cast">polymorphic_cast</A><T*>(r.get())</CODE>
|
of <CODE><A href="../conversion/cast.htm#Polymorphic_cast">polymorphic_cast</A><T*>(r.get())</CODE>
|
||||||
and shares ownership with <B>r</B>.</P>
|
and shares ownership with <B>r</B>.</P>
|
||||||
<P><B>Throws:</B> <STRONG>std::bad_cast</STRONG>.</P>
|
<P><B>Throws:</B> <STRONG>std::bad_cast</STRONG> when the pointer cannot be converted.</P>
|
||||||
<P><B>Exception safety:</B> If an exception is thrown, the function has no effect.</P>
|
<P><B>Exception safety:</B> If an exception is thrown, the function has no effect.</P>
|
||||||
</BLOCKQUOTE>
|
</BLOCKQUOTE>
|
||||||
<h3><a name="shared_polymorphic_downcast">shared_polymorphic_downcast</a></h3>
|
<h3><a name="shared_polymorphic_downcast">shared_polymorphic_downcast</a></h3>
|
||||||
|
Reference in New Issue
Block a user