Sujet : Re: constexpr keyword is unnecessary
De : thiago.adams (at) *nospam* gmail.com (Thiago Adams)
Groupes : comp.lang.cDate : 13. Oct 2024, 12:32:18
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vegb43$llri$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
Em 10/13/2024 7:51 AM, Bonita Montero escreveu:
Am 12.10.2024 um 23:37 schrieb Thiago Adams:
If you are afraid your constant is not constant expression put a static_assert. Then remove.
This is unnecessary work if you have constexpr.
I can say the same of putting constexpr.
And it makes everything more confusing.