diff --git a/include/spdlog/common.h b/include/spdlog/common.h index e9bcca43..40779770 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -187,7 +187,7 @@ constexpr std::array short_level_names SPDLOG_SHORT return level_string_views.at(level_to_number(lvl)); } -[[nodiscard]] constexpr const char *to_short_string_view(spdlog::level lvl) noexcept { +[[nodiscard]] constexpr const string_view_t to_short_string_view(spdlog::level lvl) noexcept { return short_level_names.at(level_to_number(lvl)); }