Simple pointer problem.

Hi everyone.
I have a problem, which seems simple, however have given me lot of problems.

I have a vector of pointers to objects. I now want to push a new obect into the vector. I have don like this:

1
2
3
4
5
6
vector<EdgeOverlayNode*> edgesReturn;
...

EdgeOverlayNode* edge = fingerNode->getEdges()[i];
edgesReturn.pop_back(edge);


However when pushing i got this error:

ConfluentPersistenceRevisited.cpp:335:31: error: no matching function for call to ‘std::vector<EdgeOverlayNode*>::pop_back(EdgeOverlayNode*&)’

Any can see what is wrong? And can any tell me how to fix it
Thanks for helping
Last edited on
The function you want to use is probably push_back.
Lol. Your right. Embarrassing problem. Wow thanks a lot...
Topic archived. No new replies allowed.