From 3441c2d51635d7c4ef01f74b404626b127b3729a Mon Sep 17 00:00:00 2001
From: "Dmitry Yu. Naumov" <github@naumov.de>
Date: Fri, 13 Jul 2018 19:09:29 +0200
Subject: [PATCH] [T] BL; Replace deprecated bind1st with lambda.

---
 Tests/BaseLib/TestAlgorithm.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Tests/BaseLib/TestAlgorithm.cpp b/Tests/BaseLib/TestAlgorithm.cpp
index 8517a5c7b70..9fa7d72abe6 100644
--- a/Tests/BaseLib/TestAlgorithm.cpp
+++ b/Tests/BaseLib/TestAlgorithm.cpp
@@ -54,7 +54,7 @@ TEST(BaseLibAlgorithm, excludeObjectCopy)
     // do not copy element 0, 2, 4, 6, 8, 10, 12, 14, 16, 18
     std::transform(ex_positions.begin(), ex_positions.end(),
                    ex_positions.begin(),
-                   std::bind1st(std::multiplies<std::size_t>(), 2));
+                   [](std::size_t const& x) { return x * 2; });
 
     std::vector<std::size_t> c2(BaseLib::excludeObjectCopy(v, ex_positions));
     ASSERT_EQ(size - ex_positions.size(), c2.size());
-- 
GitLab