@@ -400,7 +400,8 @@ namespace cms::soa {
400400 LOCAL_NAME(size_type _soa_impl_index) { \
401401 if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
402402 if (_soa_impl_index >= base_type::elements_ or _soa_impl_index < 0 ) \
403- SOA_THROW_OUT_OF_RANGE (" Out of range index in mutable " #LOCAL_NAME " (size_type index)" ) \
403+ SOA_THROW_OUT_OF_RANGE (" Out of range index in mutable " #LOCAL_NAME " (size_type index)" , \
404+ _soa_impl_index, base_type::elements_) \
404405 } \
405406 return typename cms::soa::SoAAccessors<typename BOOST_PP_CAT (Metadata::TypeOf_, LOCAL_NAME)>:: \
406407 template ColumnType<BOOST_PP_CAT (Metadata::ColumnTypeOf_, LOCAL_NAME)>::template AccessType< \
@@ -438,7 +439,8 @@ namespace cms::soa {
438439 LOCAL_NAME(size_type _soa_impl_index) const { \
439440 if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
440441 if (_soa_impl_index >= elements_ or _soa_impl_index < 0 ) \
441- SOA_THROW_OUT_OF_RANGE (" Out of range index in const " #LOCAL_NAME " (size_type index)" ) \
442+ SOA_THROW_OUT_OF_RANGE (" Out of range index in const " #LOCAL_NAME " (size_type index)" , \
443+ _soa_impl_index, elements_) \
442444 } \
443445 return typename cms::soa::SoAAccessors<typename BOOST_PP_CAT (Metadata::TypeOf_, LOCAL_NAME)>:: \
444446 template ColumnType<BOOST_PP_CAT (Metadata::ColumnTypeOf_, LOCAL_NAME)>::template AccessType< \
@@ -650,7 +652,7 @@ namespace cms::soa {
650652 element operator [](size_type _soa_impl_index) { \
651653 if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
652654 if (_soa_impl_index >= base_type::elements_ or _soa_impl_index < 0 ) \
653- SOA_THROW_OUT_OF_RANGE (" Out of range index in " #VIEW " ::operator[]" ) \
655+ SOA_THROW_OUT_OF_RANGE (" Out of range index in " #VIEW " ::operator[]" , _soa_impl_index, base_type::elements_) \
654656 } \
655657 return element{_soa_impl_index, _ITERATE_ON_ALL_COMMA (_DECLARE_VIEW_ELEMENT_CONSTR_CALL, ~, VALUE_LIST)}; \
656658 } \
@@ -811,7 +813,7 @@ namespace cms::soa {
811813 const_element operator [](size_type _soa_impl_index) const { \
812814 if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
813815 if (_soa_impl_index >= elements_ or _soa_impl_index < 0 ) \
814- SOA_THROW_OUT_OF_RANGE (" Out of range index in " #CONST_VIEW " ::operator[]" ) \
816+ SOA_THROW_OUT_OF_RANGE (" Out of range index in " #CONST_VIEW " ::operator[]" , _soa_impl_index, elements_) \
815817 } \
816818 return const_element{ \
817819 _soa_impl_index, _ITERATE_ON_ALL_COMMA (_DECLARE_VIEW_CONST_ELEMENT_CONSTR_CALL, ~, VALUE_LIST) \
0 commit comments