Why we cannot return istream and ostream by value? I know that we return it so we can use it multiple times in a line. But why as a reference?
Asked
Active
Viewed 41 times
0
-
4Why would you want two handles for the same stream? – Mansoor Dec 01 '20 at 15:58
-
[https://stackoverflow.com/questions/36051672/why-are-iostreams-not-copyable](https://stackoverflow.com/questions/36051672/why-are-iostreams-not-copyable) – drescherjm Dec 01 '20 at 15:58