Using tolower() is OK?

I decided to write my AskToPlayAgain()-function like this:

bool AskToPlayAgain()
{
	cout << "Do you want to play again (y/n)? ";
	string Response = "";
	getline(cin, Response);

	return tolower(Response[0]) == 'y';
}

Is there any disadvantages to using tolower()?
Personally I think it’s easier to read as you don’t have to manually parse the OR when you look at the code.

Privacy & Terms