Fix util::array resizing - move elements instead of copying

This commit is contained in:
Nikita Lisitsa 2022-06-18 15:18:39 +03:00
parent b77060abac
commit 598ad99e65

View file

@ -451,7 +451,7 @@ namespace psemek::util
do
{
data[detail::index(i, dims)] = (*this)(i);
data[detail::index(i, dims)] = std::move((*this)(i));
} while (detail::next(i, min_dim));
}