From Darin McBride · 1996-04-05 01:45 · #73612 in EMULATE
DM> inline ostream& operator << (ostream& os, cchar& cc)
DM> {
DM> return os << cc.pchar;
DM> }
EB> Since you already have a cast from cchar to const char *
EB> defined, you don't really need this, do you?
CD> DM's "sin" was overenthusiasm. He tried to do everything a class
CD> might need right from the start. When I develop my classes, I
CD> use an interative method that helps prevent this proliferation of
CD> unnecessary classes.
Actually, I only included the above because one compiler complained it didn't know how to do 'operator<<(ostream&, cchar&)'. I believe it was EMX 0.9a, but I'm using 0.9b now. When Ed pointed the above out, I retried it, and 0.9b seems to be confused whether to use 'cchar&' or 'char*'... :-)
--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)