mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-08-04 06:54:55 +02:00
Added note on BOOST_MEM_FN_ENABLE_STDCALL.
[SVN r26687]
This commit is contained in:
@@ -272,6 +272,9 @@ shared_ptr<X> createX()
|
|||||||
single reference created in <code>make_shared_from_COM</code>. Weak pointers
|
single reference created in <code>make_shared_from_COM</code>. Weak pointers
|
||||||
created from <code>pw</code> will be invalidated when the last <code>shared_ptr</code>
|
created from <code>pw</code> will be invalidated when the last <code>shared_ptr</code>
|
||||||
is destroyed, regardless of whether the COM object itself is still alive.</p>
|
is destroyed, regardless of whether the COM object itself is still alive.</p>
|
||||||
|
<P>As <A href="../bind/mem_fn.html#Q3">explained</A> in the <code>mem_fn</code> documentation,
|
||||||
|
you need to <A href="../bind/mem_fn.html#stdcall">#define
|
||||||
|
BOOST_MEM_FN_ENABLE_STDCALL</A> first.</P>
|
||||||
<h2><A name="intrusive">Using a <code>shared_ptr</code> to hold a pointer to an object
|
<h2><A name="intrusive">Using a <code>shared_ptr</code> to hold a pointer to an object
|
||||||
with an embedded reference count</A></h2>
|
with an embedded reference count</A></h2>
|
||||||
<p>This is a generalization of the above technique. The example assumes that the
|
<p>This is a generalization of the above technique. The example assumes that the
|
||||||
|
Reference in New Issue
Block a user