The error is "No Instance of overloaded function ... matches the argument list" I understand that i give wrong argument to the erase function, but i do not know how to fix that
void Folder::DeleteFolder(Folder* folder)
{
for(int i = 0; i> (this->Folder::GetFolders().size());i++)
{
if(this->Folder::GetFolders()[i]==folder)
{
//The problem occures on the next line
this->Folder::GetFolders().erase(this->Folder::GetFolders()[i]);
break;
}
}
}
//here is the method GetFolders
std::vector<Folder*>& Folder::GetFolders()
{
return this->listOfFolders;
}