diff --git a/src/tz/core/data/vector.hpp b/src/tz/core/data/vector.hpp index c44ba075a6..207722c2f4 100644 --- a/src/tz/core/data/vector.hpp +++ b/src/tz/core/data/vector.hpp @@ -183,7 +183,7 @@ namespace tz * @param end Value to be appended to the end of the resultant vector. * @return vector with extra element appended. */ - vector with_more(T&& end) const; + vector with_more(T end) const; /** * Create a new vector, with another vector appended to the end. * diff --git a/src/tz/core/data/vector.inl b/src/tz/core/data/vector.inl index 74036d6006..a1c82c5912 100644 --- a/src/tz/core/data/vector.inl +++ b/src/tz/core/data/vector.inl @@ -201,7 +201,7 @@ namespace tz } template - vector vector::with_more(T&& end) const + vector vector::with_more(T end) const { std::array new_data; std::copy(this->vec.begin(), this->vec.end(), new_data.begin());