From efe3694f150a1f307d014e68cd88350067769b19 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 7 Sep 2020 14:43:00 -0700 Subject: [PATCH] Macro tweak and clang-format --- include/fmt/core.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index d2c9633c..caef2335 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -57,6 +57,7 @@ # define FMT_MSC_VER 0 # define FMT_SUPPRESS_MSC_WARNING(n) #endif + #ifdef __has_feature # define FMT_HAS_FEATURE(x) __has_feature(x) #else @@ -64,7 +65,7 @@ #endif #if defined(__has_include) && !defined(__INTELLISENSE__) && \ - !(FMT_ICC_VERSION && FMT_ICC_VERSION < 1600) + (!FMT_ICC_VERSION || FMT_ICC_VERSION >= 1600) # define FMT_HAS_INCLUDE(x) __has_include(x) #else # define FMT_HAS_INCLUDE(x) 0 @@ -846,11 +847,10 @@ template class counting_buffer : public buffer { template class buffer_appender : public std::back_insert_iterator> { using base = std::back_insert_iterator>; + public: - explicit buffer_appender(buffer& buf) - : base(buf) {} - buffer_appender(base it) - : base(it) {} + explicit buffer_appender(buffer& buf) : base(buf) {} + buffer_appender(base it) : base(it) {} buffer_appender& operator++() { base::operator++();