[Qt-interest] Configure QtDesigner ui.h

Scott Aron Bloom Scott.Bloom at onshorecs.com
Fri Sep 2 21:56:51 CEST 2011


Not using boost is actually very typical from many of my clients...

 

While the install overhead is not trivial.  It doesn't "check into the
repository" easily is another...  

 

Its free in cost, but not in overhead..

 

Also, IMO opinion, its coding style scusk.. sorry.. If boost was written
using a Qt style coding style, ie easy to read and code to.. I might be
able to convince more people...

 

But I can say, I have never lost a client because I push and advocate
Qt.  I would have if I did for boost.

 

Scott

 

From: Danny Price [mailto:deepblue842 at googlemail.com] 
Sent: Friday, September 02, 2011 11:40 AM
To: Konstantin Tokarev
Cc: Scott Aron Bloom; qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] Configure QtDesigner ui.h

 

 

On 2 Sep 2011, at 19:33, Konstantin Tokarev wrote:

	
	02.09.2011, 22:23, "Danny Price" <deepblue842 at googlemail.com>:
	
	

	Then you've been giving your clients very bad advice indeed.
auto_ptr is deprecated in C++0x and a failed design. Do not use it.

		 

		Use boost::scoped_ptr,

	
	Obviously requires Boost :)

And you can't use boost because...? Seriously it's free and an single
installer away. The advantages of the shared pointer and hash classes
alone outweigh any downsides and works across platform, providing tr1/2
features where they might not exist (OSX).

 

		std::unique_ptr

	
	Requires C++0x

 

Or boost (boost::scoped_ptr = std::unique_ptr)









or a similar managed pointer.


QScopedPointer

 

I didn't mention the Qt pointers because they seem to have issues with
forward-declared classes. MSVC doesn't complain but GCC warns that
virtual destructors will NOT be called. I don't trust them.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110902/c0f1f613/attachment.html 


More information about the Qt-interest-old mailing list