
13 Jan
2005
13 Jan
'05
3:56 p.m.
----- Original Message ----- From: "Peter Dimov" <pdimov@mmltd.net>
IMO, this is how a more realistic example would look like:
[snip]
This is just a reflection of the general "globals are bad" principle.
Most of the application code I have seen written, does so directly to cout rather than to a function parameter. I also don't see any advantage to passing istream and ostream as function parameters, when cin and cout can be easily redirected using rdbuf. Christopher Diggins Object Oriented Template Library (OOTL) http://www.ootl.org