lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 518d684 28/65: Currency: implement binar


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

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

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

diff --git a/currency.hpp b/currency.hpp
index c2260fa..4fb12ab 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -144,7 +144,7 @@ class currency
     data_type m_ = {0};
 };
 
-//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]