Boost logo

Boost :

From: Miki Jovanovic (miki_at_[hidden])
Date: 2000-03-07 18:22:01

"miki jovanovic" <mik-_at_[hidden]> wrote:
> In partucular to your problem: mutuallu calling classes: If class A
> calls class B, it must own the pointer to it. If class B calls A it
> must own the pointer to A. Owning does not mean only owning the
> but also to manage access to it.

I was again not clear here. In this case the owner should not be the
class but rather the method doing the calling. So:

"If the method A.mth1() calls B.mth2(), then A.mth1() must own the
pointer to B. Then, if the B.mth2() calls A.mth3(), then B.mth2() must
own the pointer to A."

My point is that in 'normal' classes the owner of the pointer is the
class/instance. But in system with mutually calling classes, you have
to make each method own the pointer to the object it is calling.



Boost list run by bdawes at, gregod at, cpdaniel at, john at