On Mon, 10 Jul 2023 at 10:08, Sebastian Wittmeier via Std-Proposals <std-proposals@lists.isocpp.org> wrote:Hi Alex,
I think you misunderstood.
Jonathan's INT_MIN / INT_MAX do not return 1 or 16, respectively, for enums.
Quite the opposite, Jonathan pointed out that the existing values INT_MIN / INT_MAX can be stored in MyEnum, so 1 or 16 are _not_ the minimum or maximum possible value for the example.
Precisely. Any proposal related to the "min" and "max" of enums needs to discuss the valid values of the enumeration type.