Fixed win compile

This commit is contained in:
gabime 2024-11-30 12:19:03 +02:00
parent 70c65cf61b
commit ec34d6ddc6

View File

@ -9,7 +9,7 @@
namespace spdlog { namespace spdlog {
spdlog::level level_from_str(const std::string &name) noexcept { spdlog::level level_from_str(const std::string &name) noexcept {
auto *it = std::find(std::begin(level_string_views), std::end(level_string_views), name); const auto it = std::find(std::begin(level_string_views), std::end(level_string_views), name);
if (it != std::end(level_string_views)) return static_cast<level>(std::distance(std::begin(level_string_views), it)); if (it != std::end(level_string_views)) return static_cast<level>(std::distance(std::begin(level_string_views), it));
// check also for "warn" and "err" before giving up // check also for "warn" and "err" before giving up