[Development] Making QScopedPointer scoped (again)

Knoll Lars Lars.Knoll at digia.com
Thu Sep 5 07:49:41 CEST 2013


On 9/5/13 2:00 AM, "Thiago Macieira" <thiago.macieira at intel.com> wrote:

>On quarta-feira, 4 de setembro de 2013 22:37:55, Giuseppe D'Angelo wrote:
>> On 4 September 2013 22:15, Stephen Kelly <stephen.kelly at kdab.com> wrote:
>> > When there is a
>> > need for QUniquePointer in the future, it is added.
>> 
>> https://codereview.qt-project.org/#change,64686 :-D
>
>We should add QUniquePointer only when we find the need for it in Qt
>code, 
>which by our rules cannot depend on the C++11 standard library features.

I don't think we have that need right now. And I believe that we can start
demanding C++11 in a year or two from now.
>
>We should not provide it for third-party code, tell them to put pressure
>on 
>their vendors to provide std::unique_ptr. Let's not duplicate the C++11
>standard library in Qt.

Agree with Thiago. 

Cheers,
Lars




More information about the Development mailing list