Merge pull request #1798 from gv-me/constexpr-log-levels

add constexpr to SPDLOG_LEVEL_NAMES declaration
This commit is contained in:
Gabi Melman
2021-01-21 03:00:49 +02:00
committed by GitHub
3 changed files with 7 additions and 3 deletions

View File

@@ -166,7 +166,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;