[Qt-interest] Configure QtDesigner ui.h
Thiago Macieira
thiago at kde.org
Fri Sep 2 23:03:34 CEST 2011
On Friday, 2 de September de 2011 21:51:38 Danny Price wrote:
> No using bald pointers causes memory issues, even for experienced
> programmers. auto_ptrs cannot be safely passed around.
That's an extremely generic statement.
You're assuming that all uses of naked pointers cause memory issues. That's
obviously not true.
Are there more dangers? Yes. But you can shoot yourself in the foot even with
a nice pointer wrapper.
> > But saying, you will have memory leaks is if you don’t use boost, is like
> > saying you will have memory leaks if you don’t use Qt. Complete Hogwash
> Really? I've found memory issues with code written by very experienced but
> overconfident developers. It's all too easy to leave a hanging or
> uninitialized pointer.
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.
It might help, but you may still do things wrong:
int i;
boost::scoped_ptr<int> ptr(&i);
> I used to work for a company that had to be forced into the 21st century.
> They used Visual SourceSafe 5, didn't see the value in upgrading from VC6,
> they refused to allow us to use even STL never mind boost! Their reasoning
> was that they didn't want to introduce unwanted dependencies. Even the Qt
> application we were developing had to be kept separate from the business
> logic.
>
> I spent most of my time fixing memory issues caused by bald pointers as
> opposed to adding value to the product, a very expensive and wholly
> avoidable policy for them.
That's not the argument.
The argument is that boost is not the only solution nor a guaranteed solution.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110902/52e32ddf/attachment.bin
More information about the Qt-interest-old
mailing list