fix stack_vector copy constructor

This commit is contained in:
MihailRis 2025-09-19 12:43:16 +03:00
parent 4313029bc7
commit b85e357ab2

View File

@ -11,7 +11,7 @@ namespace util {
stack_vector(const stack_vector<T, capacity>& other)
: size_(other.size_) {
for (int i = 0; i < size_; ++i) {
new (&data_[i]) T(data_[i]);
new (&data_[i]) T(other.data_[i]);
}
}