Hi,everyone.
I am trying to use stream object reference as function arguments,like this:
void fun(const ostream& os, const istream& is);
but it keeps to give me errors. I remove the two const things works fine. How to understand this? As when we overload the <<(or >>) operators, we usually add const to stream objects. Thanks a lot.