[Development] (Bikeshed, pedantic) East constexpr vs West constexpr
Thiago Macieira
thiago.macieira at intel.com
Thu Sep 19 16:18:00 CEST 2024
On Thursday 19 September 2024 00:55:15 GMT-7 David Redondo wrote:
> So related blog I read some time ago about this and the "natural order" of
> qualifiers:
>
> https://quuxplusone.github.io/blog/2021/04/03/static-constexpr-whittling-kni
> fe/
Thanks David. Arthur proposes:
Attributes-friendness-storage-constness-virtualness-explicitness-
signedness-length-type Identifier.
static and inline are storage specifiers, so they go both before constexpr and
we prefer "static inline" where both are permitted or required. I think this
is a good suggestion to adopt.
Arthur doesn't conclude very well whether constinit comes all the way first
(because it modifies how the initialisation happens) versus being placed where
constexpr would be.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Principal Engineer - Intel DCAI Platform & System Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240919/af9323ea/attachment.bin>
More information about the Development
mailing list