On Tue, Jul 16, 2002 at 04:11:50PM +0100, Angus Leeming wrote: > > How large is '(possibly large)'? > > Angus looks at the source... (perhaps André could too ;-)...
Oh well... I looked, you know... > Ok, not large. A counter contains an int. Not exactly '(possibly large)', no? ;-) > > And yes, I prefer things over pointers to things if that's not too > > expensive... > > > counterList[newc] = new Counter; > > counterList[newc] = Counter(); > > No? > > This probably qualifies for a call of smart-arse ;-) Because the assigment is superflous since the result is identical to counterList[newc]; ? [The item in the map gets created when operator[] is used...] Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)