From 9f3b63b94d918743fb8a818f9b2fa45cd240e1b5 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 7 Sep 2017 10:39:14 +0200 Subject: [PATCH] fix VectorTools::project lambdas examples to use references --- include/deal.II/numerics/vector_tools.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/numerics/vector_tools.h b/include/deal.II/numerics/vector_tools.h index 6b0ab1f95a..b7658cb197 100644 --- a/include/deal.II/numerics/vector_tools.h +++ b/include/deal.II/numerics/vector_tools.h @@ -882,7 +882,7 @@ namespace VectorTools * dof_handler, * constraints, * quadrature_formula, - * [=] (const typename DoFHandler::active_cell_iterator & cell, const unsigned int q) -> double + * [&] (const typename DoFHandler::active_cell_iterator & cell, const unsigned int q) -> double * { return qp_data.get_data(cell)[q]->density; }, * field); * @endcode @@ -910,7 +910,7 @@ namespace VectorTools * (matrix_free_data, * constraints, * 3, - * [=] (const unsigned int cell, const unsigned int q) -> VectorizedArray + * [&] (const unsigned int cell, const unsigned int q) -> VectorizedArray * { return qp_data(cell,q); }, * field); * @endcode -- 2.39.5