Commit 70fd88de authored by Igor Chorazewicz's avatar Igor Chorazewicz
Browse files

Fix insert methods

insert_gap() method worked incorrectly. It used std::move_backward to move
elements in a vector, ignoring the fact that memory after size() was uninitialized.

This resulted in operator= being called on uninitialized elements instead of
copy/move constructor.

Fix this issue by reimplementing insert_gap as internal_insert. Use generic
implementation for iterators to implement all cases.
parent 39758edb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment