Gotta agree – is there a rationale why we don’t have those?

 

From: Std-Proposals <std-proposals-bounces@lists.isocpp.org> On Behalf Of Zhihao Yuan via Std-Proposals
Sent: Monday, April 6, 2020 5:03 AM
To: std-proposals@lists.isocpp.org
Cc: Zhihao Yuan <zy@miator.net>
Subject: Re: [std-proposals] User-defined conversion for strongly typed enums

 

On Saturday, April 4, 2020 3:17 PM, Przemek Kozioł via Std-Proposals <std-proposals@lists.isocpp.org> wrote:

 

Strongly typed enums provide type safety.

 

I believe, however, the programmer should have an option to define explicit conversions to the desired types.   

 

I believe enum class should support

member functions.

 

--

Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
_______________________________________________