I have something like shared_ptr t(makeSomething(), mem_fun(&Type::deleteMe)) I now need to call C styled function that requires a pointer to
shared_ptr t(makeSomething(), mem_fun(&Type::deleteMe))
For std::shared_ptr (C++11 onwards) also, there is a get method to obtain the raw pointer. link