[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] valyuta/002 e474aa4 09/21: Remove int relops
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] valyuta/002 e474aa4 09/21: Remove int relops |
Date: |
Fri, 18 Sep 2020 21:53:47 -0400 (EDT) |
branch: valyuta/002
commit e474aa42be69efde7fe797b13cbdf4bb48232321
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Remove int relops
Mixed-mode anything is to be avoided, even relops.
---
currency.hpp | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/currency.hpp b/currency.hpp
index 40a7808..2e3d967 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -160,21 +160,6 @@ inline bool operator> (currency const& lhs, currency
const& rhs){return operato
inline bool operator<=(currency const& lhs, currency const& rhs){return
!operator> (lhs,rhs);}
inline bool operator>=(currency const& lhs, currency const& rhs){return
!operator< (lhs,rhs);}
-inline bool operator==(currency const& lhs, int const& rhs){return
lhs.m() == rhs;}
-inline bool operator< (currency const& lhs, int const& rhs){return
lhs.m() < rhs;}
-inline bool operator==(int const& lhs, currency const& rhs){return lhs ==
rhs.m();}
-inline bool operator< (int const& lhs, currency const& rhs){return lhs <
rhs.m();}
-
-inline bool operator!=(currency const& lhs, int const& rhs){return
!operator==(lhs,rhs);}
-inline bool operator> (currency const& lhs, int const& rhs){return
operator< (rhs,lhs);}
-inline bool operator<=(currency const& lhs, int const& rhs){return
!operator> (lhs,rhs);}
-inline bool operator>=(currency const& lhs, int const& rhs){return
!operator< (lhs,rhs);}
-
-inline bool operator!=(int const& lhs, currency const& rhs){return
!operator==(lhs,rhs);}
-inline bool operator> (int const& lhs, currency const& rhs){return
operator< (rhs,lhs);}
-inline bool operator<=(int const& lhs, currency const& rhs){return
!operator> (lhs,rhs);}
-inline bool operator>=(int const& lhs, currency const& rhs){return
!operator< (lhs,rhs);}
-
// double--avoid these:
inline bool operator==(currency const& lhs, double const& rhs){return
lhs.d() == rhs;}
- [lmi-commits] [lmi] valyuta/002 updated (3f71218 -> 97e9057), Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 da89fe3 04/21: Revert "Make it faster", Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 4b313b0 07/21: Discard some commented-out code, Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 e474aa4 09/21: Remove int relops,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/002 d1c1af3 01/21: Revert "Trivially avoid spurious regression errors", Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 693dac0 02/21: Revert "Make it even faster", Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 24abb3f 03/21: Revert "Make it more faster", Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 95f34c4 06/21: Get rid of unneeded scalar doubleize(), Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 9dc1602 10/21: Remove double relops, Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 b803441 12/21: Improve documentation, Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 06046b6 05/21: Revert "Make it float", Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 215244a 13/21: Avoid implicit mixed-mode calculations more avidly, Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 63419d4 14/21: Improve documentation, Greg Chicares, 2020/09/18
- [lmi-commits] [lmi] valyuta/002 d8e2470 15/21: Refactor for clarity, Greg Chicares, 2020/09/18