diff --git a/doc/limitations.md b/doc/limitations.md index 7614822..0369b05 100644 --- a/doc/limitations.md +++ b/doc/limitations.md @@ -38,12 +38,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 nameof`. ```cpp #include - enum number { one = 100, two = 200, three = 300 }; + enum class number { one = 100, two = 200, three = 300 }; namespace nameof { template <> @@ -51,7 +51,7 @@ static constexpr int min = 100; static constexpr int max = 300; }; - } + } // namespace nameof ``` * If you hit a message like this: diff --git a/test/test.cpp b/test/test.cpp index dd57d1d..22260f9 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -87,7 +87,7 @@ struct enum_range { static constexpr int max = 300; static_assert(max > min, "nameof::enum_range requires max > min."); }; -} +} // namespace nameof SomeStruct struct_var; Long othervar;