How does one create a shared_ptr to pass to a function that takes a void *

Posted by shaz on Stack Overflow See other posts from Stack Overflow or by shaz
Published on 2010-03-23T19:37:48Z Indexed on 2010/03/23 19:43 UTC
Read the original article Hit count: 225

Filed under:
|
|

That's pretty much it. I need to allocate memory and pass it to a function that takes a void *. I'd like to use a shared_ptr but I don't know how to do it.

© Stack Overflow or respective owner

Related posts about c++

Related posts about boost