I know its a mistake to declare the second parameter here as a const, but I don't understand the error message:
Code:istream& operator>>(istream& is, const X& x)
{
is >> x.ch;
return is;
}
warning C4717: 'operator>>' : recursive on all control paths, function will cause runtime stack overflow