 |
How do I create a subscript operator for a Matrix class?, C++ FAQ
Use operator() rather than operator[]. When you have multiple subscripts, the cleanest way to do it is with operator() rather than with operator[]. The reason is that operator[] always takes exactly one parameter, but operator() can take any number of par
www.parashift.com |
 |