From: Denis Davydov Date: Thu, 7 Sep 2017 08:39:14 +0000 (+0200) Subject: fix VectorTools::project lambdas examples to use references X-Git-Tag: v9.0.0-rc1~1110^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5040%2Fhead;p=dealii.git fix VectorTools::project lambdas examples to use references --- 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