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


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

Re: Style question using enums

From Bo Persson <bo@bo-persson.se>
Newsgroups comp.lang.c++
Subject Re: Style question using enums
Date 2023-01-17 18:43 +0100
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>

Show all headers | 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