mirror of
https://github.com/fmtlib/fmt.git
synced 2025-04-01 10:20:59 +00:00
Minor cleanup
This commit is contained in:
parent
5eb023cd56
commit
a017bba062
@ -2837,10 +2837,8 @@ FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
|
|||||||
-> decltype(ctx.begin()) {
|
-> decltype(ctx.begin()) {
|
||||||
using char_type = typename ParseContext::char_type;
|
using char_type = typename ParseContext::char_type;
|
||||||
using context = buffered_context<char_type>;
|
using context = buffered_context<char_type>;
|
||||||
using mapped_type = conditional_t<
|
using mapped_type =
|
||||||
mapped_type_constant<T, context>::value != type::custom_type,
|
remove_cvref_t<decltype(arg_mapper<context>().map(std::declval<T&>()))>;
|
||||||
decltype(arg_mapper<context>().map(std::declval<const T&>())),
|
|
||||||
typename strip_named_arg<T>::type>;
|
|
||||||
#if defined(__cpp_if_constexpr)
|
#if defined(__cpp_if_constexpr)
|
||||||
if constexpr (std::is_default_constructible<
|
if constexpr (std::is_default_constructible<
|
||||||
formatter<mapped_type, char_type>>::value) {
|
formatter<mapped_type, char_type>>::value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user