C++ Logo


Advanced search

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

From: Magnus Fromreide <magfr_at_[hidden]>
Date: Mon, 14 Feb 2022 15:16:35 +0100

Whenever I see a new paper suggesting the addition of some kind of type
flag that changes some property of the language I start thinking of
Herb Sutter's generative C++ (P0707R1)

What happend to that? Did it ever get anywhere or was there something
else that replaced it?


On Fri, Feb 11, 2022 at 06:45:36PM +0000, 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.
> Best,
> Alexander

Received on 2022-02-14 14:16:39