Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabi Melman <gmelman1@gmail.com>2021-07-27 12:26:34 +0300
committerGitHub <noreply@github.com>2021-07-27 12:26:34 +0300
commit5b4c4f3f770acbd25400d866f3fc2fdf669d5b7e (patch)
tree07838d6842bcd51182b2b280f532a6e3e66a1a71
parent816ede3a177f189c7ffa86653e06fa88de910993 (diff)
parentaecdfc60a07d1cd66e7b812bd3622e9f8de0b28a (diff)
Merge pull request #2011 from sjanel/bugfix/fixclangcompilationv1.9.1
Fix compilation error in clang 13 in C++20 mode - ambiguous call to log function
-rw-r--r--include/spdlog/logger.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h
index fe9db35f..2e58628f 100644
--- a/include/spdlog/logger.h
+++ b/include/spdlog/logger.h
@@ -102,13 +102,13 @@ public:
log(loc, lvl, string_view_t{msg});
}
- // T cannot be statically converted to niether string_view, neither wstring_view and niether to format string
- template<class T, typename std::enable_if<!std::is_convertible<const T &, spdlog::string_view_t>::value
- && !is_convertible_to_basic_format_string<const T&>::value,
- int>::type = 0>
+ // T cannot be statically converted to neither string_view, nor wstring_view and nor format string
+ template<class T, typename std::enable_if<!std::is_convertible<const T &, spdlog::string_view_t>::value &&
+ !is_convertible_to_basic_format_string<const T &>::value,
+ int>::type = 0>
void log(source_loc loc, level::level_enum lvl, const T &msg)
{
- log(loc, lvl, "{}", msg);
+ log(loc, lvl, "{}", msg);
}
void log(log_clock::time_point log_time, source_loc loc, level::level_enum lvl, string_view_t msg)
@@ -141,7 +141,7 @@ public:
{
log(source_loc{}, lvl, msg);
}
-
+
template<typename... Args>
void trace(fmt::format_string<Args...> fmt, Args &&...args)
{