Dynamic_array potential logic error in insert_at
Closed this issue · 2 comments
mom4ilakis commented
shouldn't it be size_t index = it - iterator(data), so we use the defined operator-() in class iterator ?
IvanFilipov commented
In this case data_ptr
is automaticallty cast to iterator type, so iterator::operator-()
is called.
IvanFilipov commented
Closing (not error at all)