Deutsch English Français Italiano |
<veknk0$1icjf$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!news.in-chemnitz.de!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: DFS <nospam@dfs.com> Newsgroups: comp.lang.c Subject: Re: constexpr keyword is unnecessary Date: Mon, 14 Oct 2024 23:30:10 -0400 Organization: A noiseless patient Spider Lines: 15 Message-ID: <veknk0$1icjf$1@dont-email.me> References: <veb5fi$3ll7j$1@dont-email.me> <vebp8r$3ok6d$1@raubtier-asyl.eternal-september.org> <vebpo5$3olu3$1@dont-email.me> <vebtjp$3p9sm$1@raubtier-asyl.eternal-september.org> <vebubq$3p8oj$1@dont-email.me> <vecuhe$1o44$1@raubtier-asyl.eternal-september.org> <vedt8k$64du$1@dont-email.me> <veduu9$6eql$1@raubtier-asyl.eternal-september.org> <veeq6a$ar0c$1@dont-email.me> <veg8m7$laio$1@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 15 Oct 2024 05:30:09 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7687e8f1c66d535999c161cfa22e1e83"; logging-data="1651311"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kduXrs9eoKZEG12tSDIZa" User-Agent: Betterbird (Windows) Cancel-Lock: sha1:DNAcnkEO/d7YfX9+jvoqbdDDZ8c= Content-Language: en-US In-Reply-To: <veg8m7$laio$1@raubtier-asyl.eternal-september.org> Bytes: 1899 On 10/13/2024 6:51 AM, Bonita Montero wrote: > 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. > >> (C++ is a TOTAL mess. const in C++ already could be used n constant >> expression) > > C++ is five to ten times less work for the same problem. How do you measure "work'?