EA31337 / EA31337-classes

📦📈 EA31337 framework (MQL library for writing trading Expert Advisors, indicators and scripts)
https://ea31337.github.io/EA31337-classes
GNU General Public License v3.0
186 stars 98 forks source link

Trade's copy constructor not called on DictObject resize #687

Closed kenorb closed 1 year ago

kenorb commented 1 year ago

Problem: Dict's ArrayResize(new_DictSlots.DictSlots, new_size) is not calling Trade's copy constructor, but default constructor instead.

image

We probably need to convert it into DictStruct<int, Ref<Trade>> and use Ref<Trade> trade2 = new Trade(PTR_TO_REF(trade1.Ptr()));.

kenorb commented 1 year ago

Fixed in GH-693 & GH-695.