Where Your Compiler find this index ?
Please see your method description: const T& vector< T >::operator[]( const size_t  ) const

there is no "index" variable, and there is no index class member