Fix util::array resizing - move elements instead of copying
This commit is contained in:
parent
b77060abac
commit
598ad99e65
1 changed files with 1 additions and 1 deletions
|
|
@ -451,7 +451,7 @@ namespace psemek::util
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
data[detail::index(i, dims)] = (*this)(i);
|
data[detail::index(i, dims)] = std::move((*this)(i));
|
||||||
} while (detail::next(i, min_dim));
|
} while (detail::next(i, min_dim));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue