rename FMT_CAPTURE_OF_THIS to FMT_CAPTURE_THIS
This commit is contained in:
parent
ae0a2cab53
commit
9f8cacb8a4
@ -173,9 +173,9 @@ FMT_END_NAMESPACE
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (__cplusplus > 201703L)
|
#if (__cplusplus > 201703L)
|
||||||
# define FMT_CAPTURE_OF_THIS , this
|
# define FMT_CAPTURE_THIS , this
|
||||||
#else
|
#else
|
||||||
# define FMT_CAPTURE_OF_THIS
|
# define FMT_CAPTURE_THIS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Some compilers masquerade as both MSVC and GCC-likes or otherwise support
|
// Some compilers masquerade as both MSVC and GCC-likes or otherwise support
|
||||||
@ -1474,7 +1474,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
|
|||||||
void on_dec() {
|
void on_dec() {
|
||||||
auto num_digits = count_digits(abs_value);
|
auto num_digits = count_digits(abs_value);
|
||||||
out = write_int(out, num_digits, get_prefix(), specs,
|
out = write_int(out, num_digits, get_prefix(), specs,
|
||||||
[= FMT_CAPTURE_OF_THIS](iterator it) {
|
[= FMT_CAPTURE_THIS](iterator it) {
|
||||||
return format_decimal<Char>(it, abs_value, num_digits);
|
return format_decimal<Char>(it, abs_value, num_digits);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1486,7 +1486,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
|
|||||||
}
|
}
|
||||||
int num_digits = count_digits<4>(abs_value);
|
int num_digits = count_digits<4>(abs_value);
|
||||||
out = write_int(out, num_digits, get_prefix(), specs,
|
out = write_int(out, num_digits, get_prefix(), specs,
|
||||||
[= FMT_CAPTURE_OF_THIS](iterator it) {
|
[= FMT_CAPTURE_THIS](iterator it) {
|
||||||
return format_uint<4, Char>(it, abs_value, num_digits,
|
return format_uint<4, Char>(it, abs_value, num_digits,
|
||||||
specs.type != 'x');
|
specs.type != 'x');
|
||||||
});
|
});
|
||||||
@ -1499,7 +1499,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
|
|||||||
}
|
}
|
||||||
int num_digits = count_digits<1>(abs_value);
|
int num_digits = count_digits<1>(abs_value);
|
||||||
out = write_int(out, num_digits, get_prefix(), specs,
|
out = write_int(out, num_digits, get_prefix(), specs,
|
||||||
[= FMT_CAPTURE_OF_THIS](iterator it) {
|
[= FMT_CAPTURE_THIS](iterator it) {
|
||||||
return format_uint<1, Char>(it, abs_value, num_digits);
|
return format_uint<1, Char>(it, abs_value, num_digits);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1512,7 +1512,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
|
|||||||
prefix[prefix_size++] = '0';
|
prefix[prefix_size++] = '0';
|
||||||
}
|
}
|
||||||
out = write_int(out, num_digits, get_prefix(), specs,
|
out = write_int(out, num_digits, get_prefix(), specs,
|
||||||
[= FMT_CAPTURE_OF_THIS](iterator it) {
|
[= FMT_CAPTURE_THIS](iterator it) {
|
||||||
return format_uint<3, Char>(it, abs_value, num_digits);
|
return format_uint<3, Char>(it, abs_value, num_digits);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user