You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the new build of MQL5 compilator, class enums are now needs to be explicitly referenced, e.g. Condition::ENUM_MARKET_CONDITION instead of ENUM_MARKET_CONDITION. This makes the syntax not back compatible.
For example:
MQL4:
struct A {
enum bla {
A, B, C
};
};
bla x = C;
MQL5:
struct A {
enum bla {
A, B, C
};
};
bla x = A::bla::C;
The workaround is to move the enums outside of the class.
This errors in ME build 5.0.0.2122, but not in 5.0.0.1966.
The text was updated successfully, but these errors were encountered: