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

update doc

This commit is contained in:
neargye 2020-05-11 15:22:56 +05:00
parent 66d04cbe25
commit 6a340016d4

View file

@ -50,7 +50,7 @@
* Clang `-fconstexpr-depth=N`, `-fconstexpr-steps=N` <https://clang.llvm.org/docs/UsersManual.html#controlling-implementation-limits> * Clang `-fconstexpr-depth=N`, `-fconstexpr-steps=N` <https://clang.llvm.org/docs/UsersManual.html#controlling-implementation-limits>
* GCC `-fconstexpr-depth=N`, `-fconstexpr-loop-limit=N`, `-fconstexpr-ops-limit=N` <https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/C_002b_002b-Dialect-Options.html> * GCC `-fconstexpr-depth=N`, `-fconstexpr-loop-limit=N`, `-fconstexpr-ops-limit=N` <https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/C_002b_002b-Dialect-Options.html>
* `magic_enum` obtains the first defined value enums, and won't work if value are aliased. * `magic_enum` won't work if a value is aliased, work with enum-aliases is compiler-implementation-defined.
```cpp ```cpp
enum ShapeKind { enum ShapeKind {
@ -66,7 +66,7 @@
// magic_enum::enum_name(ShapeKind::Box) -> "ConvexBegin" // magic_enum::enum_name(ShapeKind::Box) -> "ConvexBegin"
``` ```
Work around the issue: One of the possible workaround the issue:
```cpp ```cpp
enum ShapeKind { enum ShapeKind {