From: Bruno Turcksin Date: Thu, 14 Mar 2019 22:00:30 +0000 (-0400) Subject: Use std::lambda instead of boost::lambda X-Git-Tag: v9.1.0-rc1~282^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7808%2Fhead;p=dealii.git Use std::lambda instead of boost::lambda --- diff --git a/tests/base/parallel_transform_01.cc b/tests/base/parallel_transform_01.cc index 78939f85ef..9bf1faf5a9 100644 --- a/tests/base/parallel_transform_01.cc +++ b/tests/base/parallel_transform_01.cc @@ -20,8 +20,6 @@ #include -#include - #include "../tests.h" @@ -39,7 +37,7 @@ main() // set y=2*x parallel::transform( - x.begin(), x.end(), y.begin(), (2 * boost::lambda::_1), 10); + x.begin(), x.end(), y.begin(), [](double i) { return 2. * i; }, 10); // compute y=0 from the previous result y -= x; diff --git a/tests/base/parallel_transform_02.cc b/tests/base/parallel_transform_02.cc index f3cfdd4eca..764746bab1 100644 --- a/tests/base/parallel_transform_02.cc +++ b/tests/base/parallel_transform_02.cc @@ -20,8 +20,6 @@ #include -#include - #include "../tests.h" @@ -45,7 +43,7 @@ main() x.end(), y.begin(), z.begin(), - (boost::lambda::_1 + 2 * boost::lambda::_2), + [](double i, double j) { return i + 2 * j; }, 10); Assert(z.l2_norm() == 0, ExcInternalError()); diff --git a/tests/base/parallel_transform_03.cc b/tests/base/parallel_transform_03.cc index 741f3eac81..2931c4dbe8 100644 --- a/tests/base/parallel_transform_03.cc +++ b/tests/base/parallel_transform_03.cc @@ -20,8 +20,6 @@ #include -#include - #include "../tests.h" @@ -48,8 +46,7 @@ main() y.begin(), z.begin(), a.begin(), - (boost::lambda::_1 + boost::lambda::_2 - - boost::lambda::_3), + [](double i, double j, double k) { return i + j - k; }, 10); AssertThrow(a.l2_norm() == 0, ExcInternalError());