Added note on BOOST_MEM_FN_ENABLE_STDCALL.

[SVN r26687]
This commit is contained in:
Peter Dimov
2005-01-13 13:45:59 +00:00
parent e5c1e12a66
commit 5616a1a872

View File

@@ -272,6 +272,9 @@ shared_ptr<X> createX()
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>
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
with an embedded reference count</A></h2>
<p>This is a generalization of the above technique. The example assumes that the