Outdated Code Structure in MQL5 Output
-
HI
I’m using the MQL5 output from FXDreema, and I noticed that the generated code triggers deprecation warnings when compiled with the latest MetaEditor.Here are the warnings:
'struct PendingOrder' initialized from type type 'OnTradeEventDetector::PendingOrder' using assignment operator, this behavior is deprecated and will be removed in future
...
consider defining copy constructor 'PendingOrder(const OnTradeEventDetector::PendingOrder&)'This applies to both PendingOrder and Position structs. It seems the generated code uses direct assignment (=) instead of copy constructors, which is now flagged by MQL5 as deprecated behavior.
Please consider updating the code generation logic in FXDreema to use proper copy constructors to avoid future compatibility issues.
Best regards,
-
Its true is a warning how can we fixed
-
Here are the warnings i dont know why this happening and how to fix it
'struct PendingOrder' initialized from type type 'OnTradeEventDetector::PendingOrder' using assignment operator, this behavior is deprecated and will be removed in future
...
consider defining copy constructor 'PendingOrder(const -
@amincgi hi did you fixed the warnings could you helpe me
-
Please contact the admin here to let him know: