lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/005 0735250 15/17: Improve incrementally


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/005 0735250 15/17: Improve incrementally
Date: Sat, 16 Jan 2021 21:06:19 -0500 (EST)

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

    Improve incrementally
---
 round_to.hpp | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/round_to.hpp b/round_to.hpp
index 3ab8adb..2b88dd0 100644
--- a/round_to.hpp
+++ b/round_to.hpp
@@ -265,10 +265,10 @@ class round_to
 
     bool operator==(round_to const&) const;
     RealType operator()(RealType r) const;
-    std::vector<RealType> operator()(std::vector<RealType> r) const;
+    std::vector<RealType> operator()(std::vector<RealType> const& r) const;
 
     currency c(RealType r) const;
-    std::vector<currency> c(std::vector<RealType> r) const;
+    std::vector<currency> c(std::vector<RealType> const& r) const;
 
     currency c(currency const& z) const;
 
@@ -373,7 +373,8 @@ inline RealType round_to<RealType>::operator()(RealType r) 
const
 }
 
 template<typename RealType>
-inline std::vector<RealType> 
round_to<RealType>::operator()(std::vector<RealType> r) const
+inline std::vector<RealType> round_to<RealType>::operator()
+    (std::vector<RealType> const& r) const
 {
     std::vector<RealType> z;
     z.reserve(r.size());
@@ -392,7 +393,8 @@ inline currency round_to<RealType>::c(RealType r) const
 }
 
 template<typename RealType>
-inline std::vector<currency> round_to<RealType>::c(std::vector<RealType> r) 
const
+inline std::vector<currency> round_to<RealType>::c
+    (std::vector<RealType> const& r) const
 {
     std::vector<currency> z;
     z.reserve(r.size());



reply via email to

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