Login Page - Create Account

Support Board


Date/Time: Mon, 24 Feb 2025 19:09:30 +0000



Post From: Example for sc.VolumeAtPriceForStudy

[2021-03-16 12:43:56]
User310645 - Posts: 49
I don't really understand why (or if there would be issues) but if you change the template definition of the Clear() method at line 387 in ACS_Source\VAPContainer.h to cast the new temp object first it resolves the reference conversion error and allows it to compile for me. YMMV.


template<typename t_VolumeAtPrice>
inline void c_VAPContainerBase<t_VolumeAtPrice>::Clear()
{
  // Swapping with a new temporary object will effectively destroy and
  // re-initialize this object.
Swap(reinterpret_cast< c_VAPContainerBase<t_VolumeAtPrice>&>(c_VAPContainerBase<t_VolumeAtPrice>(m_InitialAllocationElements)));
}