Boost logo

Boost Users :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-12-27 11:25:37


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net