diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SplitVector.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SplitVector.h b/src/SplitVector.h index 081c7cbfb..d46156e27 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -211,7 +211,10 @@ public: RoomFor(insertLength); GapTo(position); T *ptr = body.data() + part1Length; - std::uninitialized_value_construct_n(ptr, insertLength); + for (ptrdiff_t elem = 0; elem < insertLength; elem++, ptr++) { + T emptyOne = {}; + *ptr = std::move(emptyOne); + } lengthBody += insertLength; part1Length += insertLength; gapLength -= insertLength; |