mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-07 01:06:42 +08:00
...
This commit is contained in:
parent
822f29ee58
commit
e1341951a2
4
enum.h
4
enum.h
@ -622,7 +622,7 @@ class Enum { \
|
|||||||
BETTER_ENUMS_CONSTEXPR_ static _optional \
|
BETTER_ENUMS_CONSTEXPR_ static _optional \
|
||||||
_from_integral_nothrow(_integral value); \
|
_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_IF_EXCEPTIONS( \
|
||||||
BETTER_ENUMS_CONSTEXPR_ static Enum _from_index(_integral value); \
|
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); \
|
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); \
|
return *_from_value_loop(_value); \
|
||||||
} \
|
} \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user