Hi,
  I'm requesting help.  I am writing a code base that,
at best, borrows ideas from ROM. So, I'm asking some of the more
competant members of this list for some help.

I have:

class player
{
private:
string pretitle, name, title;
class descriptor * desc;
public:
...
void send(string str)
{
desc->add_outbuf(str);
}
...
};

class descriptor
{
private:
queue <string> inbuf;
queue <string> outbuf;
public:
...
void add_outbuf(string str)
{
outbuf.push_back(str);
}
....
};


Somehow.. I've got a bug that makes anything
send() to a player ... starts setting the strings in the
player (pretitle, name, title) to whatever is sent...
but only 1 string per send(). Like:
I have send("You're all set!"); and it sets pretitle to
You're all set!
And then I send a room description... and the name becomes
the room description!! (gcc v3.2.3)

As best as I can tell, this might be a compiler error (I'm running
debian sid)..

but there's the off chance that I'm doing something screwy.
So... I'm asking some of you (You know who you are)... 
if you'd be willing to take a look at my code.
(No, I don't want to take this to the gcc list unless I can
PROVE that it's a bug with g++! It's significantly busier
than this is!)

Mark
Esheliam

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d s: a-- C++>$ UL+ P+ L++ !E(---) W- N o? K? w 
O- M-- V-- PS+ PE-- Y+ !PGP !tv t+ 5? X? R* b+++ DI+ D- 
G++ e++> h---- r+++ y-- 
------END GEEK CODE BLOCK------



Reply via email to