int main()
{
vector<Film> Arkiv;
....
// In a switch case, I have a function call set up like this:
case'2':
{
string radera;
getline(cin, radera);
Film eraseFilm(radera); // Not working...?
}
....
return 0;
}
Error:
no matching function for call to 'Film::Film(std::string&)'
class Film
{
string title;
string media;
};
class Database
{
vector<Film> films;
void remove(Film& toBeRemoved) // or whatever arguments you want
{
//code to remove
}
};