The book "Thinking in C++(V2)" gives something like the following example:
It compiles and works correctly.Code:
But my <streambuf> file says:
But the code compiles and runs as expected.Quote:
Originally Posted by streambuf
Isn't cout's streambuf being written on in the example ?
Or..more likely...what punchline am I missing ?