C++ PATCH to implement C++20 P0806R2, Deprecate implicit capture of this via [=]
Jason Merrill
jason@redhat.com
Mon Aug 13 06:28:00 GMT 2018
On Sun, Aug 12, 2018 at 3:53 PM, Marek Polacek <polacek@redhat.com> wrote:
> - var = add_capture (lambda,
> - id,
> - initializer,
> - /*by_reference_p=*/
> - (this_capture_p
> - || (LAMBDA_EXPR_DEFAULT_CAPTURE_MODE (lambda)
> - == CPLD_REFERENCE)),
> - /*explicit_init_p=*/false);
> + var = add_capture (lambda, id, initializer,
> + /*by_reference_p=*/
> + (this_capture_p
> + || (LAMBDA_EXPR_DEFAULT_CAPTURE_MODE (lambda)
> + == CPLD_REFERENCE)),
> + /*explicit_init_p=*/false);
This reformatting seems unnecessary, and I prefer to avoid unnecessary
reformatting to avoid noise in 'git blame'. The rest of the patch is
OK.
Jason
More information about the Gcc-patches
mailing list