Posted by Leon Gunden on March 23, 2001 at 14:39:29:
In Reply to: Re: weird error posted by Anthony Zucaro on March 23, 2001 at 07:43:34:
: what i mean is when i declare my template objects, i have something that looks like this
: : ArrayTemplate < Book or Author > * DB;
: DB = new ArrayTemplate < Book or Author >(size)
: now, when i write DB[counter], i get an error
: when i declare them like this:
: ArrayTemplate < Book or Author > DB(size)
: //notice this time it is static
: and then write DB[counter], i do NOT get an error.
: is this a simple de-referencing problem?
You may have to explicitly call the operator like this:
There may be a way around this, but the explicit call should work
Post a Followup