diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 566cf8e4..1b315bf3 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -605,7 +605,7 @@ SPDLOG_INLINE std::vector get_directory_files(const std::string &di while ((ent = readdir(dir)) != nullptr) { - const std::string file_name::value_type* = ent->d_name; + const std::string::value_type* file_name = ent->d_name; if (file_name[0] == '.') {