tracking_ptr C++ smart pointer, which gets notified (emitting a callback) when its pointee gets destructed. Simple header-only library, see main.cpp for example usage. Released under BSD 3-Clause license Pull requests are welcome!