
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
Yes, thank you for your attention, you're right, it's not a singleton in this variant either.
About implicit constructors and operators - make them explicit and try to use them, I think it won't work, since you can't dereference a pointer to an object
In MQL4++ so called "pointers" seem to be dereferenced implicitly:
The program compiles and runs successfully:
It looks as if the language does NOT have any dereferencing defined, but a standard conversion from pointer to reference is defined, during which implicit dereferencing occurs. It is this peculiarity that the assign() function exploits. You can't do without a function, because it looks like references can only be specified in function parameters...
ALXIMIKS:
Why doesn't it work, 'ptr' - cannot call protected member function :