mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 16:56:42 +08:00
Too trigger happy :-(
This commit is contained in:
parent
d0c7473450
commit
aa6527dad0
2
enum.h
2
enum.h
@ -721,7 +721,7 @@ BETTER_ENUMS_CONSTEXPR_ inline Enum::_optional \
|
|||||||
Enum::_from_index_loop(Enum::_integral value) \
|
Enum::_from_index_loop(Enum::_integral value) \
|
||||||
{ \
|
{ \
|
||||||
return \
|
return \
|
||||||
index >= _size() ? \
|
value >= _size() ? \
|
||||||
_optional() : \
|
_optional() : \
|
||||||
_optional(BETTER_ENUMS_NS(Enum)::_value_array[value]); \
|
_optional(BETTER_ENUMS_NS(Enum)::_value_array[value]); \
|
||||||
} \
|
} \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user