 
      
    | You are here | cppstories.com | ||
| | | | | www.cppstories.com | |
| | | | | 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 here? Intro We all know that smart pointers are really nice things and we should be using them instead of raw new and delete. | |
| | | | | eyakubovich.github.io | |
| | | | | The guidance around function arguments and smart pointers is quite old, yet I still see it used incorrectly. In this post, we'll explore the guidance and the costs of not following the advice. C++ Core Guidelines make this point clear: F.7: For general use, take T* or T& arguments rather... | |
| | | | | blog.httrack.com | |
| | | | | Creating deletable and movable files on Windows 05 October 2013 Yo... | |
| | | | | alexanderell.is | |
| | | |||