mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-30 13:50:05 +00:00
clang format
This commit is contained in:
parent
da0ea4161a
commit
b7e6bf9671
@ -674,12 +674,11 @@ template <typename Context> struct custom_value {
|
||||
Context& ctx);
|
||||
};
|
||||
|
||||
template <typename T, typename Context>
|
||||
struct is_formattable {
|
||||
template <typename T, typename Context> struct is_formattable {
|
||||
enum {
|
||||
value = !is_constructible<
|
||||
typename Context::template formatter_type<T>::type,
|
||||
internal::dummy_formatter_arg>::value
|
||||
value =
|
||||
!is_constructible<typename Context::template formatter_type<T>::type,
|
||||
internal::dummy_formatter_arg>::value
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -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<T, format_context>::value,
|
||||
formatter<T, char_type>, internal::fallback_formatter<T, char_type>>::type f;
|
||||
typename std::conditional<is_formattable<T, format_context>::value,
|
||||
formatter<T, char_type>,
|
||||
internal::fallback_formatter<T, char_type>>::type f;
|
||||
return f.parse(ctx);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user