From b0c47943050be28c63586bf02f7575412434a76d Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 6 Jun 2020 14:25:36 +0300 Subject: [PATCH] Use default pointer type in enable_if --- include/spdlog/logger.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 25e5383e..64aad572 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -74,7 +74,8 @@ public: void swap(spdlog::logger &other) SPDLOG_NOEXCEPT; // FormatString is a type derived from fmt::compile_string - template::value, int>::type = 0, typename... Args> + template::value, int>::type * = nullptr, + typename... Args> void log(source_loc loc, level::level_enum lvl, const FormatString &fmt, const Args &... args) { log_(loc, lvl, fmt, args...);