From 6a340016d4099931181eaabd2df4da3685c6bcc7 Mon Sep 17 00:00:00 2001 From: neargye Date: Mon, 11 May 2020 15:22:56 +0500 Subject: [PATCH] update doc --- doc/limitations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/limitations.md b/doc/limitations.md index 792bb5b..42b7470 100644 --- a/doc/limitations.md +++ b/doc/limitations.md @@ -50,7 +50,7 @@ * Clang `-fconstexpr-depth=N`, `-fconstexpr-steps=N` * GCC `-fconstexpr-depth=N`, `-fconstexpr-loop-limit=N`, `-fconstexpr-ops-limit=N` -* `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 enum ShapeKind { @@ -66,7 +66,7 @@ // magic_enum::enum_name(ShapeKind::Box) -> "ConvexBegin" ``` - Work around the issue: + One of the possible workaround the issue: ```cpp enum ShapeKind {