!Hi I have a hard time trying to copy vector of pointers to Point. I have a
vector<Point*> oldVector
并且我要将这一病媒复制到其他病媒中。 因此,我使用了一台复印机。 我这样做了。
vector<Point*> newVector = vector<Point*>(oldVector.begin(),oldVector.end());
不幸的是,如果我行使这一职能,我就有一个例外。
vector interators incompatible
问题是什么?
EDIT There must be a bigger problem with iterators, it seems that I can t use iterators at all. I wanted to add two stl vectors into each other so I used wrote sth like this
vector<int> a, b;
b.insert(b.end(), a.begin(), a.end());
在执行这一条线时,我获得麦加特/市长。