lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [lmi-commits] master ee120a2d 1/3: Improve documentation; add


From: Vadim Zeitlin
Subject: Re: [lmi] [lmi-commits] master ee120a2d 1/3: Improve documentation; add 'const'
Date: Sat, 28 May 2022 16:36:06 +0200

On Fri, 27 May 2022 20:49:10 -0400 (EDT) Greg Chicares 
<gchicares@sbcglobal.net> wrote:

GC> branch: master
GC> commit ee120a2d83083727248f09c66f4a230784b484da
GC> Author: Gregory W. Chicares <gchicares@sbcglobal.net>
GC> Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
GC> 
GC>     Improve documentation; add 'const'
GC>     
GC>     Added 'const' in the hope of making the expression likelier to be
GC>     evaluated at compile time.
GC>     
GC>     As an extension, gcc would allow
GC>     -            static T const z0 = std::pow
GC>     +            constexpr T z0 = std::pow
GC>     but not all compilers support that.

 And looking at https://github.com/cplusplus/papers/issues/168 it seems
quite likely that they won't support it even in C++23, unfortunately. This
is really disappointing, I wanted to reply to this message saying that soon
they will, but I was clearly over-optimistic.

 Regards,
VZ

Attachment: pgp_njoiEsrwn.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]