Hi Peter,<br><br><div><span class="gmail_quote">On 20/02/07, <b class="gmail_sendername">Peter Dimov</b> <<a href="mailto:pdimov@mmltd.net">pdimov@mmltd.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <snip><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<holder> unless you have the<br>lifetime issues already figured out.</blockquote><div><br>I remember seeing ref used before. Now I know why. Thanks for the doc pointer. And you're right about the shared_ptr, which I'm using (in a roundabout way) in the real code. <br><br>Thanks for the reply.<br><br>Darren</div></div>