Blog Archives

When a C++ destructor is not called

Suppose you’re following the “resource acquisition is initialization” technique where you allocate resources as part of construction. You might write classes like: The resource is allocated in the constructor when the object is instantiated and released in the destructor when

Tagged with: , ,
Posted in Uncategorized
Design a site like this with WordPress.com
Get started