Original Post
I want to overload the operator [] to add some safety checks to my dynamic generated arrays. So I could use something like:
Gaiomard Dragon
-===(UDIC)===-
Ctile* operator[] (int i);That works fine. But what if I want to use more than one dimension? I''ve tried:
Cmap_cell* operator[][] (int x,int y); // no luck Cmap_cell* operator[] (int x, int y); // Nope...So how do I implement this? The book I have does''nt say anything about more than one dimension