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{}} {}