From 8f949409e706f65d74f7b9db04f6d03aa6ce9f59 Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 21 Sep 2020 17:40:49 +0200 Subject: [PATCH] add a scalar template to eoInt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some applications may want size_t instead of a siméle int, for example. --- eo/src/eoInt.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eo/src/eoInt.h b/eo/src/eoInt.h index 3975743e8..0f0feb3e1 100644 --- a/eo/src/eoInt.h +++ b/eo/src/eoInt.h @@ -36,7 +36,7 @@ * * @ingroup Representations */ -template class eoInt: public eoVector +template class eoInt: public eoVector { public: @@ -45,14 +45,14 @@ template class eoInt: public eoVector * @param size Size of the std::vector * @param value fill the vector with this value */ - eoInt(unsigned size = 0, int value = 0) : - eoVector(size, value) + eoInt(unsigned size = 0, T value = 0) : + eoVector(size, value) {} /** Constructor copying from a vector (or an initialization list). */ - eoInt(std::vector vec) : - eoVector(vec) + eoInt(std::vector vec) : + eoVector(vec) {} /// My class name.