[Qt-interest] Configure QtDesigner ui.h
Danny Price
deepblue842 at googlemail.com
Fri Sep 2 23:33:30 CEST 2011
Where exactly did I claim that 'using boost will solve ALL your memory problems'? You're the one making generic statements.
I said that not using boost because you're worried about introducing a dependency is a poor justification for risking easy-to-make mistakes with bald pointers. Believe me I've seen it. This is not 1998. We have better tools now. You're using Qt. You have QSharedPointer at least. Use it.
On 2 Sep 2011, at 22:03, Thiago Macieira wrote:
> He's right. You're again making a very generic claim that using boost will
> solve all of your memory problems. That's not correct.
On 2 Sep 2011, at 22:03, Thiago Macieira wrote:
>
> He's right. You're again making a very generic claim that using boost will
> solve all of your memory problems. That's not correct.
Again WHERE did I make such a claim?
>
> It might help, but you may still do things wrong:
>
> int i;
> boost::scoped_ptr<int> ptr(&i);
Oh very clever. How about less obvious problems like double deletes or references (&) to deleted objects passed to other functions, errors that some big compilers will not catch. Or implementing command-pattern classes where you cannot control the ownership of object lifetimes or have to treat every assignment with suspicion?
More information about the Qt-interest-old
mailing list