📦📈 EA31337 framework (MQL library for writing trading Expert Advisors, indicators and scripts)
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
Problem: Dict's
ArrayResize(new_DictSlots.DictSlots, new_size)
is not calling Trade's copy constructor, but default constructor instead.We probably need to convert it into
DictStruct<int, Ref<Trade>>
and useRef<Trade> trade2 = new Trade(PTR_TO_REF(trade1.Ptr()));
.