[Solved] Proxy class and correct syntax c++ [closed]


It looks like you’re referring to the wrong scope for your operator[]. Perhaps you meant:

CScreen::Proxy CScreen::operator[] (int index) const 
{
  return Proxy ( m_playground, index, m_y );
}

2

solved Proxy class and correct syntax c++ [closed]