]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid deprecated implicit this capture 10029/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 4 May 2020 14:20:30 +0000 (10:20 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 4 May 2020 15:27:47 +0000 (11:27 -0400)
examples/step-69/step-69.cc

index 6e43d71be60b164aff7c4e225edc234db65c0a6e..a1906f05dcb2fd3987f55349628a594406e34168 100644 (file)
@@ -1797,7 +1797,7 @@ namespace Step69
     // velocity $u$, and pressure $p$) into a conserved n-dimensional state
     // (density $\rho$, momentum $\mathbf{m}$, and total energy $E$).
 
-    initial_state = [=](const Point<dim> & /*point*/, double /*t*/) {
+    initial_state = [this](const Point<dim> & /*point*/, double /*t*/) {
       const double            rho   = initial_1d_state[0];
       const double            u     = initial_1d_state[1];
       const double            p     = initial_1d_state[2];

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.