title: C++ [] array operator with multiple arguments?
body: <p>Can I define in C++ an array operator that takes multiple arguments? I tried it like this:</p>
  
  <pre><code>const T&amp; operator[](const int i, const int j, const int k) const{ 
      return m_cells[k*m_resSqr+j*m_res+i];
  }
  
  T&amp; operator[](const int i, const int j, const int k){ 
      return m_cells[k*m_resSqr+j*m_res+i];       
  }
  </code></pre>
  
  <p>But I'm getting this error:</p>
  
  <pre><code>error C2804 binary operator '[' has too many parameters
  </code></pre>