On 2012/03/07 03:25 PM, Marc Mutz wrote: > You shouldn't look at the Qt-project developers when discussing interfaces. > You should look a the Qt programmers in the trenches that happily write > QColor * c = new QColor(...), as blissfully ignorant of the resource leak as > they are of Sutter/Alexandrescu. So, Qt can either default to safety or it > can default to the sharp edge. If you think the latter is acceptable, I urge > you to run a Qt Open Enrollment training as an eye-opener. Hell, I inherited > QPtrList publicly when I started out, and I would have been glad if the > compiler told me I shouldn't do that.
I'll bite, what is the problem with declaring c this way if I promise to delete it? -- Regards Alex _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development