Fix util::array::release
This commit is contained in:
parent
bfff9b2c4d
commit
26d06b74d3
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ namespace psemek::util
|
||||||
std::unique_ptr<T[]> array<T, N>::release()
|
std::unique_ptr<T[]> array<T, N>::release()
|
||||||
{
|
{
|
||||||
dims_.fill(0);
|
dims_.fill(0);
|
||||||
return data_.release();
|
return std::move(data_);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, std::size_t N>
|
template <typename T, std::size_t N>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue