The function:
void cleanAlbum()
removes the token [None]
from the album field of the songs that do not have a valid album.
I have a vector of Songs called collection and there are strings like
string artist;
string album;
string song_name;
I need to replace [None] with " " (6 whitespaces) in this collection for albums with name "[None]"
My code doesn't work:
replace_if(collection.begin(), collection.end(), "[None]", " ");