Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 11:43:32 +0000



Visual Studio 2017 error C5038

View Count: 1696

[2017-08-24 13:26:31]
DabbaDo - Posts: 146
This isn't a bug, but FYI and FWIW:
VS2017 added new warnings in 15.3, per https://docs.microsoft.com/en-us/cpp/cpp-conformance-improvements-2017.
The relevant section on that page is: C5038: order of initialization in initializer lists
Now when I compile acs_source I get the following errors.

scstructures.h(1701): error C5038: data member 's_SCSubgraph_260::LineLabel' will be initialized after data member 's_SCSubgraph_260::Data'
scstructures.h(1729): error C5038: data member 's_SCSubgraph_260::LineLabel' will be initialized after data member 's_SCSubgraph_260::Data'
scstructures.h(1275): error C5038: data member 'c_ArrayWrapper<float>::m_NumExtendedElements' will be initialized after data member 'c_ArrayWrapper<float>::m_fp_OnArrayUsed'
scstructures.h(1272): note: while compiling class template member function 'c_ArrayWrapper<float>::c_ArrayWrapper(const c_ArrayWrapper<float> &)'
scstructures.h(1261): note: see reference to class template instantiation 'c_ArrayWrapper<float>' being compiled
scstructures.h(1630): note: see reference to class template instantiation 'c_ArrayWrapper<SCFloatArray>' being compiled
scstructures.h(1275): error C5038: data member 'c_ArrayWrapper<SCDateTime>::m_NumExtendedElements' will be initialized after data member 'c_ArrayWrapper<SCDateTime>::m_fp_OnArrayUsed'
scstructures.h(1272): note: while compiling class template member function 'c_ArrayWrapper<SCDateTime>::c_ArrayWrapper(const c_ArrayWrapper<SCDateTime> &)'
scstructures.h(1550): note: see reference to class template instantiation 'c_ArrayWrapper<SCDateTime>' being compiled
vapcontainer.h(305): error C5038: data member 'c_VAPContainerBase<s_VolumeAtPriceV2>::m_InitialAllocationElements' will be initialized after data member 'c_VAPContainerBase<s_VolumeAtPriceV2>::m_p_VAPDataElements'
vapcontainer.h(305): note: while compiling class template member function 'c_VAPContainerBase<s_VolumeAtPriceV2>::c_VAPContainerBase(const unsigned int)'
vapcontainer.h(1209): note: see reference to function template instantiation 'c_VAPContainerBase<s_VolumeAtPriceV2>::c_VAPContainerBase(const unsigned int)' being compiled
vapcontainer.h(1183): note: see reference to class template instantiation 'c_VAPContainerBase<s_VolumeAtPriceV2>' being compiled
vapcontainer.h(307): error C5038: data member 'c_VAPContainerBase<s_VolumeAtPriceV2>::m_p_VAPDataElements' will be initialized after data member 'c_VAPContainerBase<s_VolumeAtPriceV2>::m_NumElementsAllocated'
vapcontainer.h(309): error C5038: data member 'c_VAPContainerBase<s_VolumeAtPriceV2>::m_NumElementsUsed' will be initialized after data member 'c_VAPContainerBase<s_VolumeAtPriceV2>::m_p_BarIndexToFirstElementIndexArray'
vapcontainer.h(312): error C5038: data member 'c_VAPContainerBase<s_VolumeAtPriceV2>::m_NumBarsAllocated' will be initialized after data member 'c_VAPContainerBase<s_VolumeAtPriceV2>::m_NumberOfBars'
vapcontainer.h(305): error C5038: data member 'c_VAPContainerBase<s_VolumeLevelAtPrice>::m_InitialAllocationElements' will be initialized after data member 'c_VAPContainerBase<s_VolumeLevelAtPrice>::m_p_VAPDataElements'
vapcontainer.h(305): note: while compiling class template member function 'c_VAPContainerBase<s_VolumeLevelAtPrice>::c_VAPContainerBase(const unsigned int)'
vapcontainer.h(1285): note: see reference to function template instantiation 'c_VAPContainerBase<s_VolumeLevelAtPrice>::c_VAPContainerBase(const unsigned int)' being compiled
vapcontainer.h(1260): note: see reference to class template instantiation 'c_VAPContainerBase<s_VolumeLevelAtPrice>' being compiled
vapcontainer.h(307): error C5038: data member 'c_VAPContainerBase<s_VolumeLevelAtPrice>::m_p_VAPDataElements' will be initialized after data member 'c_VAPContainerBase<s_VolumeLevelAtPrice>::m_NumElementsAllocated'
vapcontainer.h(309): error C5038: data member 'c_VAPContainerBase<s_VolumeLevelAtPrice>::m_NumElementsUsed' will be initialized after data member 'c_VAPContainerBase<s_VolumeLevelAtPrice>::m_p_BarIndexToFirstElementIndexArray'
vapcontainer.h(312): error C5038: data member 'c_VAPContainerBase<s_VolumeLevelAtPrice>::m_NumBarsAllocated' will be initialized after data member 'c_VAPContainerBase<s_VolumeLevelAtPrice>::m_NumberOfBars'

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account