I have the following class:
class Database
{
private:
vector<myObject*> m_vectorObj;
public:
void addObject(myObject &passObj)
}
I'm trying to do this:
void Database::addObject (myObject &passObj)
{
m_vectorObj.push_back(passObj);
}
But is giving me the error "No matching function to call", how can I make this work and pass the object and store the pointer ?