mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Update <format> to the current wording
This commit is contained in:
parent
0e72c98043
commit
635e01fe74
@ -284,7 +284,7 @@ namespace std {
|
|||||||
(std::is_same_v<T, char> && std::is_same_v<char_type, wchar_t>) ||
|
(std::is_same_v<T, char> && std::is_same_v<char_type, wchar_t>) ||
|
||||||
detail::is_standard_integer_v<T> ||
|
detail::is_standard_integer_v<T> ||
|
||||||
detail::is_standard_unsigned_integer_v<T> ||
|
detail::is_standard_unsigned_integer_v<T> ||
|
||||||
is_default_constructible_v<typename Context::template formatter_type<T>>
|
sizeof(typename Context::template formatter_type<T>().format(declval<const T&>(), declval<Context&>())) != 0
|
||||||
>> explicit basic_format_arg(const T& v) noexcept; // exposition only
|
>> explicit basic_format_arg(const T& v) noexcept; // exposition only
|
||||||
explicit basic_format_arg(float n) noexcept; // exposition only
|
explicit basic_format_arg(float n) noexcept; // exposition only
|
||||||
explicit basic_format_arg(double n) noexcept; // exposition only
|
explicit basic_format_arg(double n) noexcept; // exposition only
|
||||||
@ -344,7 +344,7 @@ template<class T, typename> /* explicit */ basic_format_arg<Context>::basic_form
|
|||||||
value = static_cast<long long int>(v);
|
value = static_cast<long long int>(v);
|
||||||
else if constexpr (detail::is_standard_unsigned_integer_v<T>)
|
else if constexpr (detail::is_standard_unsigned_integer_v<T>)
|
||||||
value = static_cast<unsigned long long int>(v);
|
value = static_cast<unsigned long long int>(v);
|
||||||
else if constexpr (is_default_constructible_v<typename Context::template formatter_type<T>>)
|
else if constexpr (sizeof(typename Context::template formatter_type<T>().format(declval<const T&>(), declval<Context&>())) != 0)
|
||||||
value = handle(v);
|
value = handle(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user