]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix VectorTools::project lambdas examples to use references 5040/head
authorDenis Davydov <davydden@gmail.com>
Thu, 7 Sep 2017 08:39:14 +0000 (10:39 +0200)
committerDenis Davydov <davydden@gmail.com>
Thu, 7 Sep 2017 08:39:14 +0000 (10:39 +0200)
include/deal.II/numerics/vector_tools.h

index 6b0ab1f95ad5d49c09dcb25271860c53c25c0b8b..b7658cb197295c7617d2042054920c778fb00d0a 100644 (file)
@@ -882,7 +882,7 @@ namespace VectorTools
    *  dof_handler,
    *  constraints,
    *  quadrature_formula,
-   *  [=] (const typename DoFHandler<dim>::active_cell_iterator & cell, const unsigned int q) -> double
+   *  [&] (const typename DoFHandler<dim>::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<double>
+   *  [&] (const unsigned int cell, const unsigned int q) -> VectorizedArray<double>
    *  { return qp_data(cell,q); },
    *  field);
    * @endcode

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.