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
Create your own website, free on WordPress.com.Create your own website.
Start free