[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f01c071 3/6: Expunge untrue comments
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f01c071 3/6: Expunge untrue comments |
Date: |
Tue, 16 Feb 2021 20:11:38 -0500 (EST) |
branch: master
commit f01c07174d20d134267b9eddcb4ecbe1a4bea627
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Expunge untrue comments
In standard C++, one cannot write
vector == scalar
to determine whether every element of the vector equals the scalar,
regardless of whether PETE is used.
---
gpt_server.cpp | 2 --
mec_server.cpp | 2 --
2 files changed, 4 deletions(-)
diff --git a/gpt_server.cpp b/gpt_server.cpp
index 6f162e3..510211f 100644
--- a/gpt_server.cpp
+++ b/gpt_server.cpp
@@ -212,8 +212,6 @@ gpt_state test_one_days_gpt_transactions
assign(DBDiscountRate, 1.0 / (1.0 + Mly7702ig));
// Use zero if that's the guaranteed rate; else use the statutory rate.
- // ET !! Use each_equal() here because PETE seems to interfere with
- // the normal operator==(). Is that a PETE defect?
std::vector<double> const zero(input.years_to_maturity(), 0.0);
std::vector<double> const& naar_disc_rate =
each_equal(Mly7702ig, 0.0)
diff --git a/mec_server.cpp b/mec_server.cpp
index 109c959..20a6700 100644
--- a/mec_server.cpp
+++ b/mec_server.cpp
@@ -193,8 +193,6 @@ mec_state test_one_days_7702A_transactions
assign(DBDiscountRate, 1.0 / (1.0 + Mly7702ig));
// Use zero if that's the guaranteed rate; else use the statutory rate.
- // ET !! Use each_equal() here because PETE seems to interfere with
- // the normal operator==(). Is that a PETE defect?
std::vector<double> const zero(input.years_to_maturity(), 0.0);
std::vector<double> const& naar_disc_rate =
each_equal(Mly7702ig, 0.0)
- [lmi-commits] [lmi] master updated (c90e25a -> 24c32d6), Greg Chicares, 2021/02/16
- [lmi-commits] [lmi] master 4c499e2 1/6: Correct a typo in a comment, Greg Chicares, 2021/02/16
- [lmi-commits] [lmi] master 98a3720 2/6: Explicitly qualify std::size_t, Greg Chicares, 2021/02/16
- [lmi-commits] [lmi] master 24c32d6 6/6: Simplify by using PETE, Greg Chicares, 2021/02/16
- [lmi-commits] [lmi] master caf25c0 4/6: Fix defect committed 20210214T1925Z: implausible dummy values, Greg Chicares, 2021/02/16
- [lmi-commits] [lmi] master f8e65ae 5/6: Simplify by using PETE, Greg Chicares, 2021/02/16
- [lmi-commits] [lmi] master f01c071 3/6: Expunge untrue comments,
Greg Chicares <=