Is it possible to convert boost shared_ptr to void* and return to boost::shared_ptr ? I need this because I need to pass a common pointer and a callback function to the timer function implemented in C. And in the callback I need to convert the void* pointer back to boost:shared_ptr . It gave me errors.
I tried the same with a model program.
#include <iostream>
Can this be done with boost::shared_ptr ?
c ++ boost
punith
source share