Possible Duplicate:
How to release pointer from boost::shared_ptr?
Detach a pointer from a shared_ptr?
I'm attempting to release a shared_ptr (the way you can release a unique_ptr). I know this doesn't make sense when the shared_ptr isn't unique, but I have a shared_ptr which is guaranteed to be unique. I've tried...
m_pObj.reset((T*)nullptr, [](T* const){});
...but it just deletes the object anyway. I'm not sure what that deleter argument is good for if shared_ptr winds up calling delete anyway.
Is there any way to achieve this (solutions specific to VS2010 are welcome if there is no other way).