Replaced const istream& with istream&.

This commit is destructive change.