> All of them could be the same or different.

 

I do not understand. Is C or D valid?

Do both data types have to be stored?

What is sizeof(E)?
 

-----Ursprüngliche Nachricht-----
Von: Filip <fph2137@gmail.com>
Gesendet: Fr 14.03.2025 11:21
Betreff: Re: [std-proposals] lambdas in enums
An: std-proposals@lists.isocpp.org;
CC: Sebastian Wittmeier <wittmeier@projectalpha.org>; std-proposals@lists.isocpp.org;
C would be { 4, 0.0f }
D would be { 5, 0.5f }
 
We should probably not break the current functionality of storing the same value many times.
All of them could be the same or different.

Cheers, Filip