mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Fix windows build
This commit is contained in:
@@ -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 {
|
||||||
const auto *it = std::find(std::begin(level_string_views), std::end(level_string_views), name);
|
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
|
||||||
|
Reference in New Issue
Block a user