fix old style cast warning

This commit is contained in:
Martin Delille 2019-01-09 19:01:54 +01:00
parent ed21395b20
commit 8a47605f0b

2
enum.h
View File

@ -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( \