[Qt-interest] Configure QtDesigner ui.h
Danny Price
deepblue842 at googlemail.com
Fri Sep 2 20:39:52 CEST 2011
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/ff5b260c/attachment.html
More information about the Qt-interest-old
mailing list