I think you're right, it is quite probably that is causing the duplications. Perhaps I should make it a std::vector<item> *items_to_iterate and repoint it? Is that even possible?