Reader Q&A: What’s the best way to pass an istream parameter?

Here s a super simple question: How do I write a parameter that accepts any non-const std::istream argument? I just want an istream I can read from. (This question isn t limited to streams, but includes any similar type you have to modify/traverse to use.) Hopefully the answer will be super simple, too! So, before reading further: Continue reading Reader Q A: What s the best way to pass an istream…