Errors, bugs, questions - page 1417
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
A100:
You are right. Short and clear, without any unnecessary words. I have posted a working code.
As a result, inside this method typename correctly defines the type passed in, e.g. as int, but already inside the B constructor typename is equal to string.
the result of typename is always of type string, in other words
That's not what I mean. typename returns a string with the type name. Inside the templated class method, the string with the type is "int", and inside the constructor called from there, the string contains "string".
The compiler does not report an error if #endif is missing
Preferably, it should, otherwise hard-to-find errorsResult: int.
Guys, is this a Market bug or is it completely normal?
I haven't tried it, but it shouldn't work if it's tied to the hardware and not the operating system. It's like taking the hard drive off and putting it on a different motherboard with a different video. Will start looking for new drivers right away.
Or am I misunderstanding the virtual machine?
A call to a virtual function in an instance of a derived class results in a call to that function from the base class, not the derived class.
A call to a virtual function in an instance of a derived class results in a call to that function from the base class, not the derived class.
They always do in constructor. Why? -> google C++ (add the word constructor to the query string)
Thank you, I didn't know) It would be good to add it into MQL5 Reference, you know, where virtual functions and constructors are mentioned. It's not like that in all languages.