[Box Backup-dev] Getting trunk ready for release
Chris Wilson
boxbackup-dev at fluffy.co.uk
Thu Dec 15 16:43:04 GMT 2005
Hi Ben,
>> Is it even possible to use ostream sensibly without operator<<? My C++
>> book says it's the only defined interface for writing formatted output to
>> an ostream.
>
> Wonderful. So some stupid example in a textbook just to demonstrate that
> operator overloading can be used to do things other than the operations that
> the operators imply (with all the potential for confusion, bugs, etc that
> that entails) is now going to pollute this project with it's idiocy?
>
> Lovely.
I agree with the principle of what you're saying, but I didn't write the
STL or choose that ostream could only be used with operator<<. Do we
really want to write our own output stream class? Blame Bjarne and the C++
standards group :-)
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |
More information about the Boxbackup-dev
mailing list