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;