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:
EdgeOverlayNode* edge = fingerNode->getEdges()[i];
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...