[Development] QUIP 6: removing top-level const from return types
Marc Mutz
marc.mutz at kdab.com
Tue May 23 10:39:46 CEST 2017
On Tuesday 23 May 2017 08:36:00 Lars Knoll wrote:
> (a detach happening on Linux, but not on MSVC)
Don't fall for FUD.
QPixmap does not have functions that are overloaded on const/non-const.
Neither does QRegion. Well, except for the special member functions, which is
the whole point of the exercise. And for QStringBuilder, the change enabled
calling the rvalue overload of toXyz() functions in the first place, which re-
use storage, saving an allocation.
To summarize: there is no negative impact of any of these changes. And if MSVC
does something stupid, it deserves to continue to be pessimised.
Thanks,
Marc
--
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts
More information about the Development
mailing list