Tag: memory management
IntroductionWhat are smart pointers? They are a means of handling the problems associated with normal pointers, namely memory management issues like memory leaks, double-deletions, dangling pointers etc. This post gives …
Constructor, destructors and assignment operatorsThere is a rule of thumb in C++ that if a class defines a destructor, constructor and copy assignment operator – then it should explicitly define …
Using boost::scoped_arrayWhen we want to dynamically allocate an array of objects for some purpose, the C++ programming language offers us the new and delete operators that are intended to replace …
Using boost::scoped_arrayWhen we want to dynamically allocate an array of objects for some purpose, the C++ programming language offers us the new and delete operators that are intended to replace …