On quarta-feira, 4 de setembro de 2013 09:00:14, Peter Kümmel wrote: > But then you could use take() add wrap the pointer with something else, > only this way I would call "explicit".
What's that something else? Remember that QScopedPointer was created to simplify handling of exceptions (when we tried to care about exceptions). If we have to take the pointer out and handle it manually, it defeats the entire purpose of QScopedPointer -- simplifying exception management. To ensure proper RAII, we need to have a hand-off to another object. What class is that other object that allows returning or passing? > Do we really wanna pollute Qt's API with QScopedPointer-s? No, I don't. I'm just presenting arguments. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
