lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 c105c78 29/65: Currency: implement binar


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 c105c78 29/65: Currency: implement binary operator-
Date: Wed, 16 Sep 2020 16:55:16 -0400 (EDT)

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

    Currency: implement binary operator-
---
 currency.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/currency.hpp b/currency.hpp
index 4fb12ab..df93967 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -145,6 +145,7 @@ class currency
 };
 
 inline currency operator+(currency lhs, currency rhs) {return lhs += rhs;}
+inline currency operator-(currency lhs, currency rhs) {return lhs -= rhs;}
 inline currency operator+(currency lhs, double rhs) {return lhs += 
currency(rhs);}
 inline currency operator-(currency lhs, double rhs) {return lhs -= 
currency(rhs);}
 //inline currency operator*(currency lhs, double rhs) {return lhs *= 
currency(rhs);}



reply via email to

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