[Development] (Bikeshed, pedantic) East constexpr vs West constexpr

Tor Arne Vestbø Tor.arne.Vestbo at qt.io
Fri Sep 20 00:31:47 CEST 2024



> On Sep 19, 2024, at 16:33, Volker Hilsheimer via Development <development at qt-project.org> wrote:
> 
> My preference would be "static constexpr inline”, as static is the most important piece of information (storage and calling convention in case of member functions), constexpr is “good to know”, and inline is in practice mostly an implementation detail.
> 
> It also has the advantage that it keeps code grep-friendly, i.e. I can search for anything “static constexpr” (which for out-of-lined members is the clear preference in existing code), and find everything, even if it’s also inline.

+1 

Tor Arne


More information about the Development mailing list