Linked by Thom Holwerda on Mon 24th Aug 2009 15:06 UTC, submitted by diegocg
Qt Qt usually takes the boring memory allocation and deallocation from you, either through its implicitly shared containers, or with QObject's parent child relationship model. But every once in a while, we need to allocate something on the heap, and then the stress starts - where do we delete it, and how do we make sure to not leak the memory? To fix this problem, QScopedPointer was born. It will delete the object it is pointing to automatically when it goes out of scope.
Permalink for comment 380970
To read all comments associated with this story, please click here.
RE[2]: Duplicated effort?
by FooBarWidget on Thu 27th Aug 2009 16:56 UTC in reply to "RE: Duplicated effort?"
FooBarWidget
Member since:
2005-11-11

You definitely can cherry-pick parts. That's exactly what, for example, Phusion Passenger does.

Edited 2009-08-27 16:57 UTC

Reply Parent Bookmark Score: 2