From 0414495682d58ae80631574abde498095f7bf708 Mon Sep 17 00:00:00 2001 From: neargye Date: Tue, 8 Oct 2019 12:55:21 +0500 Subject: [PATCH] cstring not final --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index d1e061e..330bf8a 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -85,7 +85,7 @@ static_assert(NAMEOF_ENUM_RANGE_MAX < (std::numeric_limits::max)() static_assert(NAMEOF_ENUM_RANGE_MAX > NAMEOF_ENUM_RANGE_MIN, "NAMEOF_ENUM_RANGE_MAX must be greater than NAMEOF_ENUM_RANGE_MIN."); template -struct [[nodiscard]] cstring final { +struct [[nodiscard]] cstring { static_assert(N > 0, "Expression does not have a name."); constexpr cstring(std::string_view str) noexcept : cstring{str, std::make_index_sequence{}} {}