Is it possible to overload [] operator twice? To allow, something like this: function[3][3](like in a two dimensional array).
[]
function[3][3]
If it is pos
struct test { using array_reference = int(&)[32][32]; array_reference operator [] (std::size_t index) { return m_data[index]; } private: int m_data[32][32][32]; };
Found my own simple solution to this.