Skip to content

Commit

Permalink
Fixed win compile
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 30, 2024
1 parent 70c65cf commit ec34d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace spdlog {

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));

// check also for "warn" and "err" before giving up
Expand Down

0 comments on commit ec34d6d

Please sign in to comment.