class A { public:
voidoperator[]( int i ) const {} // const добавил
};
class B { public:
B() : a( new A ) {}
~B() { delete a; }
A *a;
void f() const { a.operator[]( 0 ); } // нет ошибкиvoid g() const { a[ 0 ]; } // нет ошибки
};
Anton Zverev: It's the desktop version of Five we're talking about. There's no air mode.
What's the terminal got to do with it?! You need to disable the internet on the computer, and the easiest action is to enable aeroplane mode. Or go to settings and disable the network adapter.
Karputov Vladimir: What does the terminal have to do with it?! You need to disable the internet on the computer, and the easiest action is to switch on "On Plane" mode. Or go into settings and disable the network adapter.
Where's that mode in Win7?! I'm sorry, but I'm a very weak user.
I'd love to learn, but Google doesn't understand where I went wrong. Could you summarise the point of my misunderstanding? I see a compiler error in your example at the "normal" line. In my mind, the compiler should have blurted out.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Compilation error
Compilation error
Where "normal" is, there must be an error. The operator is defined, not as const.
'Psychiatrist' gets a D today
It's the desktop version of Five we're talking about. There's no air mode.
Learn how to match
What does the terminal have to do with it?! You need to disable the internet on the computer, and the easiest action is to switch on "On Plane" mode. Or go into settings and disable the network adapter.
Where's that mode in Win7?! Sorry, but I'm a very weak user.
Learn to match.
I'd love to learn, but Google doesn't understand ...