
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
Hi all,
Inside a script i use the following code :
This above code works correctly in MQL5 but in MQL4 creates a compile error : '=' - structure have objects and cannot be copied
Even if i inheritance the class CObject into the TestClass creates another compile error : '=' - not allowed for objects with protected members or inheritance
Example with CObject inheritance :
Even if i replace the string property with int the compile error still exist.
In this example i don't want to use POINTER_DYNAMIC to solve the issue.
Why that happens only on MQL4 ? Can be solved without using pointers ? Please advise.
Thanks in advance!