lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master adb7f54 3/3: Eradicate remaining mentions of


From: Greg Chicares
Subject: [lmi-commits] [lmi] master adb7f54 3/3: Eradicate remaining mentions of std::bind{1st, 2nd}
Date: Sat, 4 Apr 2020 11:10:14 -0400 (EDT)

branch: master
commit adb7f54781302b28f35ae1294bd1693bdcdd56a1
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Eradicate remaining mentions of std::bind{1st,2nd}
---
 expression_template_0_test.cpp | 2 +-
 interest_rates.cpp             | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/expression_template_0_test.cpp b/expression_template_0_test.cpp
index 51c6aa8..2d5c203 100644
--- a/expression_template_0_test.cpp
+++ b/expression_template_0_test.cpp
@@ -159,7 +159,7 @@ void mete_stl_plain()
             (sv1a.begin()
             ,sv1a.end()
             ,std::back_inserter(tmp0)
-            ,std::bind1st(std::multiplies<double>(), 2.1)
+            ,[](double x) { return 2.1 * x; }
             );
         std::transform
             (sv0a.begin()
diff --git a/interest_rates.cpp b/interest_rates.cpp
index 8d4a3fe..399cdca 100644
--- a/interest_rates.cpp
+++ b/interest_rates.cpp
@@ -1150,13 +1150,13 @@ void InterestRates::Initialize7702Rates()
         (Mly7702ig.begin()
         ,Mly7702ig.end()
         ,Mly7702ig.begin()
-        ,std::bind1st(std::divides<double>(), 1.0)
+        ,[](double x) { return 1.0 / x; }
         );
     std::transform
         (Mly7702ig.begin()
         ,Mly7702ig.end()
         ,Mly7702ig.begin()
-        ,std::bind2nd(std::minus<double>(), 1.0)
+        ,[](double x) { return x - 1.0; }
         );
 }
 #endif // 0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]