Fix uninitialized values in util::spatial_array
This commit is contained in:
parent
512ec6df93
commit
b3304e7785
1 changed files with 2 additions and 1 deletions
|
|
@ -147,6 +147,7 @@ namespace psemek::util
|
|||
}
|
||||
|
||||
array_.resize(size);
|
||||
*array_.begin() = T();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -170,7 +171,7 @@ namespace psemek::util
|
|||
|
||||
array<T, N> new_array(new_size);
|
||||
for (auto & v : new_array)
|
||||
v = T{};
|
||||
v = T();
|
||||
|
||||
for (auto idx : array_.indices())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue