mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 16:56:42 +08:00
...
This commit is contained in:
parent
822f29ee58
commit
e1341951a2
6
enum.h
6
enum.h
@ -621,8 +621,8 @@ class Enum { \
|
||||
_from_integral_unchecked(_integral value); \
|
||||
BETTER_ENUMS_CONSTEXPR_ static _optional \
|
||||
_from_integral_nothrow(_integral value); \
|
||||
\
|
||||
BETTER_ENUMS_CONSTEXPR_ _integral _to_index() const; \
|
||||
\
|
||||
BETTER_ENUMS_CONSTEXPR_ std::size_t _to_index() const; \
|
||||
BETTER_ENUMS_IF_EXCEPTIONS( \
|
||||
BETTER_ENUMS_CONSTEXPR_ static Enum _from_index(_integral value); \
|
||||
) \
|
||||
@ -753,7 +753,7 @@ BETTER_ENUMS_CONSTEXPR_ inline Enum::_integral Enum::_to_integral() const \
|
||||
return _integral(_value); \
|
||||
} \
|
||||
\
|
||||
BETTER_ENUMS_CONSTEXPR_ inline Enum::_integral Enum::_to_index() const \
|
||||
BETTER_ENUMS_CONSTEXPR_ inline std::size_t Enum::_to_index() const \
|
||||
{ \
|
||||
return *_from_value_loop(_value); \
|
||||
} \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user