![]() |
operator overloading
i was wondering about the array subscript operator in particular("[]"), is there a limit to how many arguments can be passed through it?
|
Re: operator overloading
Quote:
T operator [] (int i) const; i think it can only be overloaded with one argument |
Re: operator overloading
The standard states that operator[] is a non-static member that accepts exactly one argument.
operator() is a non-static member that accepts an arbitrary number of parameters. ;) |
| All times are GMT -5. The time now is 9:28 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC