Default-initialize elements in util::spatial_array
This commit is contained in:
parent
649c051b61
commit
2421dee3b7
1 changed files with 3 additions and 0 deletions
|
|
@ -151,6 +151,9 @@ namespace psemek::util
|
|||
}
|
||||
|
||||
array<T, N> new_array(new_size);
|
||||
for (auto & v : new_array)
|
||||
v = T{};
|
||||
|
||||
for (auto idx : array_.indices())
|
||||
{
|
||||
std::array<std::size_t, N> new_idx;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue