C++ Logo


Advanced search

Re: [std-proposals] New features for enum class

From: Francis Grizzly Smit <grizzly_at_[hidden]>
Date: Sat, 12 Feb 2022 08:01:36 +1100
On 12/02/2022 05:45, Alexander Christensen via Std-Proposals wrote:
> Hi,
> So I have been considering / missing some features from enums, more
> speficially "enum class"'es,
> some of which can be found in e.g. C#. These are nice-to-have, and
> could in some cases be a really
> great help during development and logging.
> Ever tried to log the value of an enum and being dissappointed to only
> find an integer, requiring
> a table lookup?
> My first ever attempt to write a proposal can be found in the compiled
> pdf found here:
> https://github.com/alexpanter/cpp-enum-proposal/blob/master/report.pdf
> It very likely contains errors, inconsistencies, or other undesired
> appearances. So I apologize in advance for these.
> I merely wanted to see, if there were any interest in something like
> this, as well as how I could proceed.
Not bad for a starting place.
> Best,
> Alexander
   .~.     There are many things that I love....
   /V\         but God Comes way above all else❣❣❣❣
  /( )\    Francis (Grizzly) Smit
  ^^-^^    http://www.smit.id.au/

Received on 2022-02-11 21:01:42