Skip to content

Commit

Permalink
fix: value-initialization for data_ added to inplace_vector
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jul 3, 2024
1 parent c59ab3e commit cc75950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/ext/inplace_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class inplace_vector {
}

private:
T data_[N];
T data_[N] = {};
size_type size_ = 0;
};

Expand Down

0 comments on commit cc75950

Please sign in to comment.