[core] Give StaticVector a user provided default constructor (#19110)

This commit is contained in:
J. Nick Koston
2026-09-16 20:32:21 +12:00
committed by GitHub
parent 9162dc38ce
commit 9a76f1be4f
+3 -2
View File
@@ -242,8 +242,9 @@ template<typename T, size_t N> class StaticVector {
size_t count_{0};
public:
// Default constructor
StaticVector() = default;
// User provided, not "= default": otherwise `StaticVector<...> x_{}` members
// value-initialize and memset data_, defeating the comment above.
constexpr StaticVector() noexcept {}
// Iterator range constructor
template<typename InputIt> StaticVector(InputIt first, InputIt last) {