----- Original Message -----
From: soha nabil
To: [EMAIL PROTECTED]
Sent: Sunday, April 13, 2003 11:22 AM
Subject: problem with operator overloading in Integer class

| hi..
|  i've got a problem of assigning a variable of type Integer to
| another one of the same one.. i raise an unhandled exception..
| ... (i'm using visual c++ verson 6 on windows 2000 proff.)
| ...
| Soha..

Hi Soha,

I have not had any problems with the Integer class (and I have used it extensively).

I think the sample code you posted (and problem with operator new) is too deep into
your call stack. Can you assert(...) on the values passed to GenerateChallenge(CBank*
bank, Integer a, Integer b, Integer& u, Integer& v)?

Shooting from the hip, I think the problem is probably the CBank* (since I feel the
copy constructor of Integer is sound, and the compiler would warn of reference
problems to u and v).

What is the call stack showing when void New(unsigned int newSize) asserts?

Jeff

Reply via email to