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