From 2ac1b9632b2cf241010e3f9a7e0f1c9946e958f3 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 29 Jan 2021 12:35:52 +0000 Subject: [PATCH] Fix composition testsuite --- STL_Extension/test/STL_Extension/test_composition.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/STL_Extension/test/STL_Extension/test_composition.cpp b/STL_Extension/test/STL_Extension/test_composition.cpp index c9a3caaea61..a0631437393 100644 --- a/STL_Extension/test/STL_Extension/test_composition.cpp +++ b/STL_Extension/test/STL_Extension/test_composition.cpp @@ -28,7 +28,6 @@ struct Myf { int main() { plus< int > pl; - multiplies< int > mu; std::function op1 = [](int i){ return i+1; }; std::function op2 = [](int i){ return i * 2; }; @@ -48,7 +47,7 @@ int main() // compose2_1: transform(b, b + 5, a, compose2_1(pl, op2, op2)); - transform(b, b + 5, b, bind1st(mu, 4)); + transform(b, b + 5, b, [](int i) { return 4 * i;} ); assert(equal(a, a + 5, b)); // compare_to_less