From a835f16fea4aa1e9d9af24981b2ebf07302bac43 Mon Sep 17 00:00:00 2001 From: Mark Harris Date: Wed, 2 Sep 2020 12:34:40 +1000 Subject: [PATCH] Undo changes caused by clang-format and || --> && --- include/fmt/core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index d7f3d726..4893ba97 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -227,11 +227,11 @@ // libc++ supports string_view in pre-c++17. #if (FMT_HAS_INCLUDE() && \ - (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \ + (__cplusplus > 201402L && defined(_LIBCPP_VERSION))) || \ (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910) # include # define FMT_USE_STRING_VIEW -// libstdc++ supports experimental/string_view in c++14 +// libstdc++ supports experimental/string_view in c++14. #elif FMT_HAS_INCLUDE("experimental/string_view") && __cplusplus >= 201402L # include # define FMT_USE_EXPERIMENTAL_STRING_VIEW @@ -847,7 +847,7 @@ 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) {}