Boost logo

Boost Users :

From: anthony kelly (pinkeye888_at_[hidden])
Date: 2008-01-29 22:39:45


Thank you

On Jan 27, 2008 12:29 PM, Sohail Somani <sohail_at_[hidden]> wrote:

> On Sat, 26 Jan 2008 19:59:42 -0500, Scott McMurray wrote:
>
> > On 26/01/2008, Sohail Somani <sohail_at_[hidden]> wrote:
> >> Only thing you'd have to be careful of is copying of class C but you
> >> can inherit from boost::noncopyable to avoid any issues.
> >>
> > Using auto_ptr instead of shared_ptr would be another option, if you
> > prefer ownership transfer semantics.
>
> Either way, auto_ptr is the right choice. Thanks.
>
> > Note also that a member function pointer is not usable on its own, so
> > you'll need to do something like this instead:
> >
> > thread.reset(new thread( bind(&C::ThreadJob, this) ));
>
> You caught me blindly copying!
>
> --
> Sohail Somani
> http://uint32t.blogspot.com
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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