Post #28 396 Aug 7, 2021, 13:00 UTC #cpphttps://www.cppstories.com/2016/04/custom-deleters-for-c-smart-pointers/ C++ Stories Custom Deleters for C++ Smart Pointers Let’s say we have the following code: LegacyList* pMyList = new LegacyList(); ... pMyList->ReleaseElements(); delete pMyList; In order to fully delete an object we need to do some additional action. How to make it more C++11? How to use unique_ptr or shared_ptr…