Boost logo

Boost Users :

From: Elli Barasch (comptonsw_at_[hidden])
Date: 2008-01-15 19:34:17


Richard Dingwall wrote:
> On Jan 16, 2008 1:11 PM, Elli Barasch <comptonsw_at_[hidden]> wrote:
>
>> I'd like to pass a shared_ptr as the entry argument to a thread function
>> via pthread_create. However,
>> the entry argument is prototyped as void *. I can't simply cast the
>> shared pointer as a (void *). How do I go about this?
>>
>
> Try passing:
>
> static_cast<void *>(your_ptr.get())
>
>
> Richard
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
Super. Thanks for the quick response!



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