diff --git a/include/nameof.hpp b/include/nameof.hpp index 0b424a1..04292c5 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -191,7 +191,7 @@ template struct nameof_enum_impl_t final { [[nodiscard]] constexpr std::string_view operator()(int value) const noexcept { if constexpr (V > std::numeric_limits>::max()) { - return {"nameof_enum::out_of_range"}; + return "nameof_enum::out_of_range"; } switch (value - V) { @@ -220,7 +220,7 @@ struct nameof_enum_impl_t final { template struct nameof_enum_impl_t final { [[nodiscard]] constexpr std::string_view operator()(int) const noexcept { - return {"nameof_enum::out_of_range"}; + return "nameof_enum::out_of_range"; } };