From b7e6bf9671032d62074d3d17a0a3d6301a13522c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 21 Mar 2019 20:51:37 -0700 Subject: [PATCH] clang format --- include/fmt/core.h | 9 ++++----- include/fmt/format.h | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index f71fdb01..5ba58e1a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -674,12 +674,11 @@ template struct custom_value { Context& ctx); }; -template -struct is_formattable { +template struct is_formattable { enum { - value = !is_constructible< - typename Context::template formatter_type::type, - internal::dummy_formatter_arg>::value + value = + !is_constructible::type, + internal::dummy_formatter_arg>::value }; }; diff --git a/include/fmt/format.h b/include/fmt/format.h index 669f4bfe..56ce8878 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2137,9 +2137,9 @@ FMT_CONSTEXPR const typename ParseContext::char_type* parse_format_specs( ParseContext& ctx) { // GCC 7.2 requires initializer. typedef typename ParseContext::char_type char_type; - typename std::conditional< - is_formattable::value, - formatter, internal::fallback_formatter>::type f; + typename std::conditional::value, + formatter, + internal::fallback_formatter>::type f; return f.parse(ctx); }