Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #88572

Re: Style question using enums

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Bo Persson <bo@bo-persson.se>
Newsgroups comp.lang.c++
Subject Re: Style question using enums
Date Tue, 17 Jan 2023 18:43:03 +0100
Lines 17
Message-ID <k2o519Fag27U1@mid.individual.net> (permalink)
References <2872908e-bb54-428d-9118-2b5520943b34n@googlegroups.com> <bee4e8a5-924a-4b71-a843-f0cc52260d1cn@googlegroups.com> <9ad0862c-1f69-45a2-bba6-1f3efc518177n@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace individual.net GNVzN0OCERAG3zBYsEtMjAexU7hN7cooibiZmhY6lPmKUiAi0Y
Cancel-Lock sha1:O5aLL99fSVdwBMKKHuZmgDFgB0U=
User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1
Content-Language sv
In-Reply-To <9ad0862c-1f69-45a2-bba6-1f3efc518177n@googlegroups.com>
Xref csiph.com comp.lang.c++:88572

Show key headers only | View raw


On 2023-01-17 at 14:52, Paul N wrote:
> On Tuesday, January 17, 2023 at 1:23:47 PM UTC, Öö Tiib wrote:
>> On Tuesday, 17 January 2023 at 14:29:51 UTC+2, Paul N wrote:
>>>
>>> and a function
>>>
>>> int b(int level, int suit) { return 15 * level + 3 * suit; }
 >>
>> Here you clearly want to have constexpr function.
> 
> Yes, Paavo said that too and gave me the syntax. I perhaps ought to keep up more with these recent (!) developments to the language.
> 


Yes, as recent as 2011.  :-)

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Style question using enums Paul N <gw7rib@aol.com> - 2023-01-17 04:29 -0800
  Re: Style question using enums Paavo Helde <eesnimi@osa.pri.ee> - 2023-01-17 15:15 +0200
    Re: Style question using enums Paul N <gw7rib@aol.com> - 2023-01-17 05:44 -0800
  Re: Style question using enums Öö Tiib <ootiib@hot.ee> - 2023-01-17 05:23 -0800
    Re: Style question using enums Paul N <gw7rib@aol.com> - 2023-01-17 05:52 -0800
      Re: Style question using enums David Brown <david.brown@hesbynett.no> - 2023-01-17 17:00 +0100
        Re: Style question using enums Paul N <gw7rib@aol.com> - 2023-01-17 08:17 -0800
      Re: Style question using enums Bo Persson <bo@bo-persson.se> - 2023-01-17 18:43 +0100
  Re: Style question using enums Richard Damon <Richard@Damon-Family.org> - 2023-01-17 22:15 -0500

csiph-web