Deutsch English Français Italiano |
<vf86uc$1fvt3$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Thiago Adams <thiago.adams@gmail.com> Newsgroups: comp.lang.c Subject: Re: constexpr keyword is unnecessary Date: Tue, 22 Oct 2024 09:48:11 -0300 Organization: A noiseless patient Spider Lines: 16 Message-ID: <vf86uc$1fvt3$1@dont-email.me> References: <veb5fi$3ll7j$1@dont-email.me> <877ca5q84u.fsf@nosuchdomain.example.com> <vf0ijd$3u54q$1@dont-email.me> <vf0l98$3un4n$1@dont-email.me> <vf1216$p0c$1@dont-email.me> <87y12jpxvl.fsf@nosuchdomain.example.com> <vf1d2o$2hjk$1@dont-email.me> <87plnvpgb9.fsf@nosuchdomain.example.com> <vf2sm8$deou$1@dont-email.me> <vf7m4s$1d8mj$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, 22 Oct 2024 14:48:12 +0200 (CEST) Injection-Info: dont-email.me; posting-host="99417925cb3e1ec44b3fc056573e6074"; logging-data="1572771"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JXrblOxEk3aMfxEYvbTy6Kj4iSBL4J8A=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:sODt52QKh4RS7DTcesqm3Gi0oJs= Content-Language: en-US In-Reply-To: <vf7m4s$1d8mj$1@raubtier-asyl.eternal-september.org> Bytes: 1937 On 22/10/2024 05:02, Bonita Montero wrote: > Am 20.10.2024 um 14:22 schrieb Thiago Adams: > >> //'constexpr' initializer not representable in type of object >> constexpr unsigned char c= 1234; >> with const it is a warning. ... > > Good that we have constexpr now. > I think a more generic feature would be to have a standard way of promoting selected warnings to errors. This would avoid stacking features with small differences, such as treating constexpr as a special case compared to other constant expressions in C.