On Tue, Jul 16, 2002 at 10:43:50PM +0300, Martin Vermeer wrote: > > counterList[newc] = new Counter; > > I assume this means the d'tor Counters::~Counters() can go?
I did not understand what this was good for anyway. Assuming 'Counter' is a name for a thing, and 'CounterList' a name of a container of such things, the 'containee' should not know about its container and it should be possible to have Counters not stored in a CounterList. The kind of cyclic dependency between two classes is best avoided. If there is indeed such a strong coupling necessary (which I doubt btw), they probably should merged into a single class. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)