View Single Post
Old May 8th, 2008, 11:52 PM   #2
JD-Salinger
Unknown
 
JD-Salinger's Avatar
 
Join Date: Apr 2008
Location: unknown
Posts: 60
Rep Power: 1 JD-Salinger is on a distinguished road
Re: operator overloading

Quote:
Originally Posted by Generic User #2 View Post
i was wondering about the array subscript operator in particular("[]"), is there a limit to how many arguments can be passed through it?
T operator [] (int i) const;

i think it can only be overloaded with one argument
__________________
-------------------------------------------------------------------------
I thought what I'd Do was, I'd pretend to be one of those deaf mutes
------------------------------------------------------------------------

Last edited by JD-Salinger; May 9th, 2008 at 12:09 AM. Reason: wrong answer
JD-Salinger is offline   Reply With Quote