Rename argument of _to_index, _from_index

Follow-on to #59.
This commit is contained in:
Anton Bachin 2020-10-19 08:09:55 +03:00
parent c730fc8ae8
commit 3e115c0c17

6
enum.h
View File

@ -671,12 +671,12 @@ class BETTER_ENUMS_CLASS_ATTRIBUTE Enum {
\
BETTER_ENUMS_CONSTEXPR_ std::size_t _to_index() const; \
BETTER_ENUMS_IF_EXCEPTIONS( \
BETTER_ENUMS_CONSTEXPR_ static Enum _from_index(std::size_t value); \
BETTER_ENUMS_CONSTEXPR_ static Enum _from_index(std::size_t index); \
) \
BETTER_ENUMS_CONSTEXPR_ static Enum \
_from_index_unchecked(std::size_t value); \
_from_index_unchecked(std::size_t index); \
BETTER_ENUMS_CONSTEXPR_ static _optional \
_from_index_nothrow(std::size_t value); \
_from_index_nothrow(std::size_t index); \
\
ToStringConstexpr const char* _to_string() const; \
BETTER_ENUMS_IF_EXCEPTIONS( \