diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index e0f5e173..6055582b 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -73,8 +73,7 @@ public: void swap(spdlog::logger &other) noexcept; // FormatString is a type derived from fmt::compile_string - template::value, int> * = nullptr, - typename... Args> + template::value, int> = 0, typename... Args> void log(source_loc loc, level::level_enum lvl, const FormatString &fmt, const Args &... args) { log_(loc, lvl, fmt, args...); @@ -137,7 +136,7 @@ public: // T can be statically converted to string_view and isn't a fmt::compile_string template::value && !fmt::is_compile_string::value, T> * = nullptr> + std::is_convertible::value && !fmt::is_compile_string::value, int> = 0> void log(source_loc loc, level::level_enum lvl, const T &msg) { log(loc, lvl, string_view_t{msg}); @@ -171,9 +170,9 @@ public: } // T cannot be statically converted to string_view or wstring_view - template::value && - !is_convertible_to_wstring_view::value, - T> * = nullptr> + template::value && !is_convertible_to_wstring_view::value, int> = 0> void log(source_loc loc, level::level_enum lvl, const T &msg) { log(loc, lvl, "{}", msg); @@ -242,7 +241,7 @@ public: } // T can be statically converted to wstring_view - template::value, T> * = nullptr> + template::value, int> = 0> void log(source_loc loc, level::level_enum lvl, const T &msg) { if (!should_log(lvl))