|
You are here |
www.cppstories.com | ||
| | | | |
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. | |
| | | | |
www.bfilipek.com
|
|
| | | | | Some time ago I covered how to use custom deleters with smart pointers. The basic idea is to specify a dedicated method that will be called when a pointer is released. One logical application of custom deleters might be resource handles like files or the WinApi HANDLE type. Lets see how can we implement such thing. | |
| | | | |
solarianprogrammer.com
|
|
| | | | | How to compile from sources GCC 10 on macOS Catalina | |
| | | | |
rog3rsm1th.github.io
|
|
| | | How I set up a RISC-V development environment on my machine in order to develop RISC-V assembly programs and analyze RISC-V linux malwares. | ||