A
Afshin
Hi everybody,
I am developing code for a scheduling applicaiton in which I have a
class for products (called cProduct) which contains, among others, an
array of class cResource to represent the resources used to process
the product. For both classes (cProduct and cResource), I have defined
overloaded operator= ; with operator= for cResource being called from
inside the overloaded operator= defined for cProduct. The problem is
that calling internal operator= (from inside the opertor= for class
cProduct) leads to an error which is attributed to undefined value for
rhs (being passed from internal call to operator=). I appreciate any
hint or clue on how to fix this problem. Below is a summary of
relevant classes and overloaded operator=:
class cProduct{
public:
cProduct(int ResNum);
I am developing code for a scheduling applicaiton in which I have a
class for products (called cProduct) which contains, among others, an
array of class cResource to represent the resources used to process
the product. For both classes (cProduct and cResource), I have defined
overloaded operator= ; with operator= for cResource being called from
inside the overloaded operator= defined for cProduct. The problem is
that calling internal operator= (from inside the opertor= for class
cProduct) leads to an error which is attributed to undefined value for
rhs (being passed from internal call to operator=). I appreciate any
hint or clue on how to fix this problem. Below is a summary of
relevant classes and overloaded operator=:
class cProduct{
public:
cProduct(int ResNum);