From 2fbd9771dc26bfd7ce40c23e0e56b53c7d1ed475 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 30 May 2025 11:13:38 -0600 Subject: [PATCH] Do not capture 'this' where not necessary. --- include/deal.II/lac/solver_gmres.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/deal.II/lac/solver_gmres.h b/include/deal.II/lac/solver_gmres.h index 29c92e61e9..337d8751e0 100644 --- a/include/deal.II/lac/solver_gmres.h +++ b/include/deal.II/lac/solver_gmres.h @@ -2293,8 +2293,7 @@ void SolverMPGMRES::solve_internal( // Krylov space sequence according to the chosen indexing strategy const auto previous_vector_index = - [this, n_preconditioners, indexing_strategy]( - unsigned int i) -> unsigned int { + [n_preconditioners, indexing_strategy](unsigned int i) -> unsigned int { // In the special case of no preconditioners we simply fall back to the // FGMRES indexing strategy. if (n_preconditioners == 0) -- 2.39.5