B
Brian
Shalom
Is there any difference between
enum class Fruit : uint8_t { love = 1, joy, peace, patience,
kindness };
and
enum struct Fruit : uint8_t { love = 1, joy, peace, patience,
kindness };
?
If there is, what is it? If there isn't any difference, my opinion is
that it is kind of an unfortunate point for flexibility in the
language.
I may modify my support for strongly-typed enums to only support
enum class if there's no difference between the two.
Brian Wood
http://webEbenezer.net
(651) 251-9384
Is there any difference between
enum class Fruit : uint8_t { love = 1, joy, peace, patience,
kindness };
and
enum struct Fruit : uint8_t { love = 1, joy, peace, patience,
kindness };
?
If there is, what is it? If there isn't any difference, my opinion is
that it is kind of an unfortunate point for flexibility in the
language.
I may modify my support for strongly-typed enums to only support
enum class if there's no difference between the two.
Brian Wood
http://webEbenezer.net
(651) 251-9384