lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/005 c8864d3 04/17: Add commented-out relops


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/005 c8864d3 04/17: Add commented-out relops
Date: Sat, 16 Jan 2021 21:06:17 -0500 (EST)

branch: valyuta/005
commit c8864d30f7ad25c8edf34eea4061697106439fd6
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Add commented-out relops
    
    Not yet sure whether these are needed. The (commented-out) free function
    is to be modified as necessary.
---
 currency.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/currency.hpp b/currency.hpp
index 5f21c8a..3555adf 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -47,6 +47,8 @@ class LMI_SO currency
 
     currency& operator+=(currency const& z) {m_ += z.m_; return *this;}
 
+//  bool operator<(currency const& z) const {return m_ < z.m_;}
+
     data_type cents() const {return m_;}
     // !! possible underflow?
     double d() const {return m_ / cents_per_dollar;}
@@ -75,6 +77,8 @@ inline currency operator-(currency const& lhs, currency 
const& rhs)
     return currency {lhs} += -currency {rhs};
 }
 
+//inline bool operator<(currency const& z) const {return m_ < z.m_;}
+
 static inline currency const C0 {{}, raw_cents {}};
 
 inline std::ostream& operator<<(std::ostream& os, currency const& z)



reply via email to

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