Il 01/02/20 09:27, Allan Sandfeld Jensen ha scritto:
To me the name is still perfect. It makes perfect sense. Just because it is movable doesn't mean you move the object itself, a move moves the content of the object. So each move triggers a move of the payload of a scoped pointer to another scoped pointer in another scope.I never understood why anyone would think the name would make that impossible.
The counter argument is: it would imply that the _pointer_ escapes the _scope_.
This conversation is 9 years too old -- the ship has sailed. std::unique_ptr is the vocabulary type that is on every C++ book teaches, every C++ talk explains, every C++ project uses (all over the place inside Qt itself). Unless some extraordinary argument appears, that's the name that Qt should also use.
My 2 c, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development