Sujet : Re: constexpr keyword is unnecessary
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 13. Oct 2024, 17:39:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20241013093902.884@kylheku.com>
References : 1 2 3 4 5
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-10-11, Thiago Adams <
thiago.adams@gmail.com> wrote:
What I am suggesting again is remove the keyword constexpr. make const
do that.
>
Just to remember C++ was already like that before constexpr. In c++
const could be used as constant expressions.
Really?
const int f(int x) { ... }
says that calls to f can be evaluated at compile time?
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca