[boost] shared_ptr with 0 use_count

2003-02-10 Thread dynalink
Forgive me if this seems like a really basic question, but how does one create a shared_ptr with an initial use count of zero? Thanks, Peter ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

[boost] Re: shared_ptr with 0 use_count

2003-02-10 Thread dynalink
B c; do_something(); } Thanks, Peter. Peter Krnjevic Dynalink Technologies "Peter Dimov" <[EMAIL PROTECTED]> wrote in message 002801c2d122$5d604a40$1d00a8c0@pdimov2">news:002801c2d122$5d604a40$1d00a8c0@pdimov2... > dynalink wrote: > > Forgive me if this seems like

[boost] Re: Re: shared_ptr with 0 use_count

2003-02-10 Thread dynalink
Works great! How thread safe is this? Thanks, Peter "Peter Dimov" <[EMAIL PROTECTED]> wrote in message 001301c2d12c$30c1d210$1d00a8c0@pdimov2">news:001301c2d12c$30c1d210$1d00a8c0@pdimov2... > dynalink wrote: > > I need to create a single instance of X a

[boost] Re: Re: Re: shared_ptr with 0 use_count

2003-02-10 Thread dynalink
Thanks again, Peter. That's about what I expected - a mutex around A::create should do the trick. Peter Krnjevic Dynalink Technologies "Peter Dimov" <[EMAIL PROTECTED]> wrote in message 000d01c2d138$2d29e7d0$1d00a8c0@pdimov2">news:000d01c2d138$2d29e7d0$1d00a8c