lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master cd6c9ea 3/8: Favor the One True type-paramete


From: Greg Chicares
Subject: [lmi-commits] [lmi] master cd6c9ea 3/8: Favor the One True type-parameter-key
Date: Sat, 20 Mar 2021 09:55:29 -0400 (EDT)

branch: master
commit cd6c9ea33d6835a2020d4f2af35feefcff2c948c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Favor the One True type-parameter-key
---
 tools/pete-2.1.1/et_vector.hpp | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tools/pete-2.1.1/et_vector.hpp b/tools/pete-2.1.1/et_vector.hpp
index 5916847..75123c5 100644
--- a/tools/pete-2.1.1/et_vector.hpp
+++ b/tools/pete-2.1.1/et_vector.hpp
@@ -82,7 +82,7 @@
 
 /// Create vector-reference leaves.
 
-template<class T>
+template<typename T>
 struct CreateLeaf<std::vector<T>>
 {
     typedef Reference<std::vector<T>> Leaf_t;
@@ -102,7 +102,7 @@ class SizeLeaf
     int length_;
 };
 
-template<class T>
+template<typename T>
 struct LeafFunctor<Scalar<T>, SizeLeaf>
 {
     typedef bool Type_t;
@@ -112,7 +112,7 @@ struct LeafFunctor<Scalar<T>, SizeLeaf>
     }
 };
 
-template<class T>
+template<typename T>
 struct LeafFunctor<std::vector<T>, SizeLeaf>
 {
     typedef bool Type_t;
@@ -122,7 +122,7 @@ struct LeafFunctor<std::vector<T>, SizeLeaf>
     }
 };
 
-template<class T>
+template<typename T>
 struct LeafFunctor<std::vector<T>, EvalLeaf1>
 {
     typedef T Type_t;
@@ -136,7 +136,7 @@ struct LeafFunctor<std::vector<T>, EvalLeaf1>
 
 struct LengthLeaf {};
 
-template<class T>
+template<typename T>
 struct LeafFunctor<std::vector<T>, LengthLeaf>
 {
     typedef int Type_t;
@@ -144,7 +144,7 @@ struct LeafFunctor<std::vector<T>, LengthLeaf>
         {return lmi::ssize(v);}
 };
 
-template<class T>
+template<typename T>
 struct LeafFunctor<T, LengthLeaf>
 {
     typedef int Type_t;
@@ -157,7 +157,7 @@ struct MaxCombine
     PETE_EMPTY_CONSTRUCTORS(MaxCombine)
 };
 
-template<class Op>
+template<typename Op>
 struct Combine2<int, int, Op, MaxCombine>
 {
     typedef int Type_t;
@@ -169,7 +169,7 @@ struct Combine2<int, int, Op, MaxCombine>
 
 /// All PETE assignment operators call evaluate().
 
-template<class T, class Op, class U>
+template<typename T, typename Op, typename U>
 inline void evaluate(std::vector<T>& t, Op const& op, Expression<U> const& u)
 {
     if(!forEach(u, SizeLeaf(lmi::ssize(t)), AndCombine()))



reply via email to

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