1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

update doc

This commit is contained in:
neargye 2020-02-14 15:09:51 +05:00
parent cae43830a3
commit f42605bbf1
2 changed files with 4 additions and 4 deletions

View file

@ -22,12 +22,12 @@
#include <magic_enum.hpp>
```
* If need another range for specific enum type, add specialization `enum_range` for necessary enum type.
* If need another range for specific enum type, add specialization `enum_range` for necessary enum type. Specialization of `enum_range` must be injected in `namespace magic_enum`.
```cpp
#include <magic_enum.hpp>
enum number { one = 100, two = 200, three = 300 };
enum class number { one = 100, two = 200, three = 300 };
namespace magic_enum {
template <>
@ -35,7 +35,7 @@
static constexpr int min = 100; // Must be greater than `INT16_MIN`.
static constexpr int max = 300; // Must be less than `INT16_MAX`.
};
}
} // namespace magic_enum
```
* If you hit a message like this: