Hi Peter,<br><br><div><span class="gmail_quote">On 20/02/07, <b class="gmail_sendername">Peter Dimov</b> &lt;<a href="mailto:pdimov@mmltd.net">pdimov@mmltd.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&lt;snip&gt;<br>No, boost::bind( f, x, y... ) stores copies of f, x and y. Use ref(h) to<br>make it store a reference. See the last paragraph of<br><br><a href="http://boost.org/libs/bind/bind.html#with_functions">http://boost.org/libs/bind/bind.html#with_functions
</a><br><br>You might also consider using shared_ptr&lt;holder&gt; unless you have the<br>lifetime issues already figured out.</blockquote><div><br>I remember seeing ref used&nbsp; before. Now I know why. Thanks for the doc pointer. And you&#39;re right about the shared_ptr, which I&#39;m using (in a roundabout way) in the real code.
<br><br>Thanks for the reply.<br><br>Darren</div></div>