[Box Backup-dev] Getting trunk ready for release
Gary
boxbackup-dev at fluffy.co.uk
Thu Dec 15 23:52:36 GMT 2005
Martin,
> Streams are about the only place where it works, and then only
> because they are absolutely endemic. Everyone knows exactly
> what they do, no surprises.
Well said, everyone knows the <<, >> stuff so well that one rarely runs
into any other functionality other than serialization. When it comes to
the "general" topic of operator overloading, I wouldn't agree, ==,=,<
are wonderful for, say, GUID/FILETIME wrappers to establish equality,
ordering, etc.
> Not for ints, or floats, or most kinds of data types. Works for
> strings though, but doesn't give any formatting control. Not
> really an option.
Well, one could try to:
ostream::write((char*) &fValue, sizeof(float)/sizeof(char));
...but that's a horrible way to do it. I think Chris was right: when it
comes to streams, the operators just HAVE to be used.
Gary
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Boxbackup-dev
mailing list