aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortema-m <tema-m@yandex-team.com>2024-04-14 14:26:46 +0300
committertema-m <tema-m@yandex-team.com>2024-04-14 14:45:59 +0300
commit93702c900844c92c3d8daef5a75ac89eb32157ab (patch)
tree4ce7cfe7e1c5dd33cdf4107613d7d6ee4bcf3061
parente646c0d6f331d5baf752fa3dd60e2cde92ffc966 (diff)
downloadydb-93702c900844c92c3d8daef5a75ac89eb32157ab.tar.gz
refactor in vector
some refactor in vector 2c11be2b50c10b1786950201317ef103cff8c79a
-rw-r--r--util/generic/vector.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/vector.h b/util/generic/vector.h
index 1723961e53..cbb50951a5 100644
--- a/util/generic/vector.h
+++ b/util/generic/vector.h
@@ -77,7 +77,7 @@ public:
}
inline TVector(TSelf&& src) noexcept
- : TBase(std::forward<TSelf>(src))
+ : TBase(std::move(src))
{
}
@@ -93,7 +93,7 @@ public:
}
inline TSelf& operator=(TSelf&& src) noexcept {
- TBase::operator=(std::forward<TSelf>(src));
+ TBase::operator=(std::move(src));
return *this;
}
@@ -111,7 +111,7 @@ public:
}
inline yssize_t ysize() const noexcept {
- return (yssize_t)TBase::size();
+ return static_cast<yssize_t>(TBase::size());
}
#if defined(_YNDX_LIBCXX_ENABLE_VECTOR_POD_RESIZE_UNINITIALIZED) && !defined(__CUDACC__)