Attempt to get rid of the gcc internal compiler error
about implicitly capturing this
in a generic lambda.
I think the error occurs with gcc 9.3 on buildbot.
Attempt to get rid of the gcc internal compiler error about implicitly capturing `this` in a generic lambda.