C++20's new `using enum` feature. Syntax and possible use cases.
#cppweekly #cplusplushttps://youtu.be/JM8F2DPm_0E
I like the idea. Unfortunately, that syntax is already used for indicating the underlying type of the enum. Because integral types and enum types are both type identifiers, I suppose integral types could just be considered "valueless enums" in this context.
-
-
Like what if the base type is a u8, but you're adding so many extended values you want it to be u16? Can you cast from Derived to Base? What happens when Derived is out of Base's possible numbers? I see lots of problems yet to solve with this.
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.