]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use empty function object for copier 8891/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 18 Oct 2019 14:54:18 +0000 (10:54 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 18 Oct 2019 15:13:57 +0000 (11:13 -0400)
examples/step-51/step-51.cc
examples/step-9/step-9.cc

index 269ef7ec1345e80a086d59988c2bff30ccb4dfad..433632338d8103ef508e51fa2f3ba50942c941b4 100644 (file)
@@ -1035,7 +1035,7 @@ namespace Step51
                unsigned int &                                        data) {
           this->postprocess_one_cell(cell, scratch, data);
         },
-        [](const unsigned int &) {},
+        std::function<void(const unsigned int &)>(),
         scratch,
         0U);
     }
index 7a19ff1ecb646f69e8327a43695fe908f7f4951c..836afd2be55c845408d954c139b70782a3d485c3 100644 (file)
@@ -955,7 +955,7 @@ namespace Step9
     WorkStream::run(dof_handler.begin_active(),
                     dof_handler.end(),
                     &GradientEstimation::template estimate_cell<dim>,
-                    [](const EstimateCopyData &) {},
+                    std::function<void(const EstimateCopyData &)>(),
                     EstimateScratchData<dim>(dof_handler.get_fe(),
                                              solution,
                                              error_per_cell),

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.