From 1b8b84918459c5ef6246847b5a58907996c9edea Mon Sep 17 00:00:00 2001 From: neargye Date: Fri, 14 Feb 2020 18:04:48 +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 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;