[Development] Upgrading the sources to C++11 keywords (Q_NULLPTR, etc.)
Marc Mutz
marc.mutz at kdab.com
Thu Jul 23 14:28:17 CEST 2015
On Thursday 08 January 2015 23:33:34 Thiago Macieira wrote:
> * Q_CONSTEXPR - use only where required
>
> You probably don't need this. You'll need it when accessing const data from
> a Q_DECL_CONSTEXPR function. Otherwise, you won't need it.
>
> You could use this to create a static-initialisation-time const variable of
> a non-POD type, but since our sources still compile in C++98 and we still
> have a rule against non-POD statics, you should not do this.
Consensus, I think?
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 Experts
More information about the Development
mailing list