Errors, bugs, questions - page 1137
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Announcement
does not mean that class A should only have const methods. It only means that only const methods can be called in f() itselfI'm sort of aware of this. The problem is that Compare is virtual and is actually MY PERSONAL comparison function. I used to have the right to use non-static methods in MY function, but now I've been deprived of that ability.
I can't use my own Compare without const, because it won't be called in the algorithms of the standard library.
Static pointers could not be used before. Only previously the error was generated at declaration, now it is at initialization.
To do otherwise would mean to be able to use external variables of complex types, which has been repeatedly discussed as impossible.
Static pointers could not be used before. Only previously the error was generated at declaration, now it is at initialization.
To do otherwise would mean the possibility to use external variables of complex types, which has been repeatedly discussed earlier as impossible.
Hello there. I've just found some lines in my code like:
static Settings* set;
that used to compile just fine. Now it doesn't.
This is an example from the mql5 documentation. Here is the link to that page. And below is this code.
C-4:
... used to compile just fine. Now it doesn't.
This is actually the correct initialisation. A statik in a class has nothing to do with an object that is a statik.
And the fact that it doesn't compile really looks like a bug.
StringGetCharacter(.
Here's the code, doesn't output anything. If you open Sleep(0) or any empty statement that is not thrown by the compiler, it works, outputs character codes.
StringGetCharacter(.
Here's the code, doesn't output anything. If you open Sleep(0) or any empty statement that is not thrown by the compiler, it works, outputs character codes.