From f42605bbf17dfb6c0fb84370a77e05fe6f0f69be Mon Sep 17 00:00:00 2001 From: neargye Date: Fri, 14 Feb 2020 15:09:51 +0500 Subject: [PATCH] update doc --- doc/limitations.md | 6 +++--- test/test.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/limitations.md b/doc/limitations.md index 6c058cd..792bb5b 100644 --- a/doc/limitations.md +++ b/doc/limitations.md @@ -22,12 +22,12 @@ #include ``` - * 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 - 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: diff --git a/test/test.cpp b/test/test.cpp index 1f765f2..8b070df 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -45,7 +45,7 @@ struct enum_range { static constexpr int min = 100; static constexpr int max = 300; }; -} +} // namespace magic_enum using namespace magic_enum;