From de5ff7d6fe6443960b41cf58a9019062ca2d4178 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Thu, 14 Mar 2019 18:00:30 -0400 Subject: [PATCH] Use std::lambda instead of boost::lambda --- tests/base/parallel_transform_01.cc | 4 +--- tests/base/parallel_transform_02.cc | 4 +--- tests/base/parallel_transform_03.cc | 5 +---- 3 files changed, 3 insertions(+), 10 deletions(-) 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()); -- 2.39.5