Topic: WHY NO OPERATOR [T, T]?
Author: sunil.puri@toronto.can.ipguild.org
Date: Thu, 17 Nov 94 22:34:59 -0500 Raw View
I have been following this thread and come to the following conclusion, which
does not require a new version of the compiler but follows the suggestion that
it can be implemented using: x[(a, b)] (as opposed to x[a, b].
What you do is overload operator() as you wish, which may pass onto operator[]
(argList), which could be a private member of the class. argList could be
another (helper) object that operator () builds and initializes with whatever
it accepts as parameters?
I am aware this does have limitations, but I consider a useful solution for the
time being , until a more permanent, long term one is devised.
What do you all think of this?
Sunil Puri
sunil.puri@toronto.can.ipguild.org