mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-08 01:36:44 +08:00
Merge branch 'fix-old-style-cast' of https://github.com/MartinDelille/better-enums into fix-static-cast
This commit is contained in:
commit
ee53076a88
2
enum.h
2
enum.h
@ -498,7 +498,7 @@ struct _initialize_at_program_start {
|
||||
// Array generation macros.
|
||||
|
||||
#define BETTER_ENUMS_EAT_ASSIGN_SINGLE(EnumType, index, expression) \
|
||||
(EnumType)((::better_enums::_eat_assign<EnumType>)EnumType::expression),
|
||||
static_cast<EnumType>(static_cast<::better_enums::_eat_assign<EnumType>>(EnumType::expression)),
|
||||
|
||||
#define BETTER_ENUMS_EAT_ASSIGN(EnumType, ...) \
|
||||
BETTER_ENUMS_ID( \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user