Array of Function Pointers compilation error in MQL5
Navdeep Singh:
It's a bug in metatrader's compiler, a workaround would be to do:The below script compiles and works fine in MQL4 but throws compilation error(some operator expected) in MQL5. I hope someone can guide me and help in rectifying the issue.
TFunc p = funcPtr[i];
Print(p(text));
Reported to Metaquotes and fixed. Will be available on next build.
The below script compiles and works fine in MQL4 but throws compilation error(some operator expected) in MQL5. I hope someone can guide me and help in rectifying the issue.