add constexpr to SPDLOG_LEVEL_NAMES declaration

for #1791
This commit is contained in:
Gaurav Vaidya
2021-01-11 11:15:29 +01:00
parent aa2053a575
commit 53d223b45f
3 changed files with 4 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ enum level_enum
}
#endif
SPDLOG_API string_view_t &to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT;
SPDLOG_API const string_view_t &to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT;
SPDLOG_API const char *to_short_c_str(spdlog::level::level_enum l) SPDLOG_NOEXCEPT;
SPDLOG_API spdlog::level::level_enum from_str(const std::string &name) SPDLOG_NOEXCEPT;