operator[] return (&x)[i];

Pages: 12
I was referring to what OP wants to do. Namely, declare the contents of the class as members and then access them with array indices, instead of declaring them as an array to begin with and writing accessors.

Please skip the snark next time, thank you very much.
Topic archived. No new replies allowed.
Pages: 12