Following the advice on this question, I am attempting to do just that. However, at runtime I get an error "vector iterators incompatible", in the following:
std::vector<SE> all;
all.insert(all.end(),p->ev.begin(),p->ev.end());
where class pointed to by p contains a member
std::vector<SE> ev;
It is possible for the vector ev to be empty, in which case I want 'all' to be unchanged. Otherwise, I want all the elements of p->ev to be added to 'all', in the same order, at the end of 'all'.
What am I doing wrong?
Visual Studio 2010 C++, 32-bit Windows XP
ADDITIONAL INFO: Using the debugger, I have traced the proximate cause of the error message as the "owning container" of p->ev.begin() being 0. I have no clue what the "owning container" means.