From f3fee3d67e5f0ab1ddbb76bc0e8b81a356e47f26 Mon Sep 17 00:00:00 2001 From: harrand Date: Sun, 11 Feb 2024 17:34:57 +0000 Subject: [PATCH] [vector] with_more now takes by value instead of rvalue ref --- src/tz/core/data/vector.hpp | 2 +- src/tz/core/data/vector.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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());