rename FMT_CAPTURE_OF_THIS to FMT_CAPTURE_THIS

This commit is contained in:
Markus Werle 2020-05-08 14:42:05 +02:00
parent ae0a2cab53
commit 9f8cacb8a4

View File

@ -173,9 +173,9 @@ FMT_END_NAMESPACE
#endif
#if (__cplusplus > 201703L)
# define FMT_CAPTURE_OF_THIS , this
# define FMT_CAPTURE_THIS , this
#else
# define FMT_CAPTURE_OF_THIS
# define FMT_CAPTURE_THIS
#endif
// 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() {
auto num_digits = count_digits(abs_value);
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);
});
}
@ -1486,7 +1486,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
}
int num_digits = count_digits<4>(abs_value);
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,
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);
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);
});
}
@ -1512,7 +1512,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
prefix[prefix_size++] = '0';
}
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);
});
}