27 Dec
2004
27 Dec
'04
4:25 p.m.
Roland Schwarz wrote:
Rene Rivera wrote:
Not only is it designed to work.. But it's a documented use case:
http://www.boost.org/libs/bind/bind.html#with_member_pointers
Thank you for your reply, I have seen this though. What I was unsure about is the fact that in my case I am creating the shared_ptr as a temporary object.
Ah I see what your question is now... Bind uses copies of the arguments unless told otherwise with boost::ref. So as long as the function<> exists so will the argument, and hence the shared instance. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq