Re: C++ CircleMUD

From: George (greerga@CIRCLEMUD.ORG)
Date: 11/26/97


On Wed, 26 Nov 1997, Akuma/Chris Baggett/DOOMer wrote:

>test.c++:8: no match for `operator <<(class log, class log)'

>  Log << "hi" << " hi " << Log;  // <-- Line 8 (trust me, this is it)
>  Log << " foo" << -20;
>  Log.flush();

I do remember making (but not posting) a better version with that feature.
I think I just erased it.  I would have had it written something like this:

log::operator << (class log &c) { c.Flush(); }

>would appreciate it.
>and why do you only have a length of 11 for the strings?

That's the maximum digits a number should end up being.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST