@@ -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< \
@@ -784,7 +786,7 @@ namespace cms::soa {
784786 element operator [](size_type _soa_impl_index) { \
785787 if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
786788 if (_soa_impl_index >= base_type::elements_ or _soa_impl_index < 0 ) \
787- SOA_THROW_OUT_OF_RANGE (" Out of range index in " #VIEW " ::operator[]" ) \
789+ SOA_THROW_OUT_OF_RANGE (" Out of range index in " #VIEW " ::operator[]" , _soa_impl_index, base_type::elements_) \
788790 } \
789791 return element{_soa_impl_index, _ITERATE_ON_ALL_COMMA (_DECLARE_VIEW_ELEMENT_CONSTR_CALL, ~, VALUE_LIST)}; \
790792 } \
@@ -969,7 +971,7 @@ namespace cms::soa {
969971 const_element operator [](size_type _soa_impl_index) const { \
970972 if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
971973 if (_soa_impl_index >= elements_ or _soa_impl_index < 0 ) \
972- SOA_THROW_OUT_OF_RANGE (" Out of range index in " #CONST_VIEW " ::operator[]" ) \
974+ SOA_THROW_OUT_OF_RANGE (" Out of range index in " #CONST_VIEW " ::operator[]" , _soa_impl_index, elements_) \
973975 } \
974976 return const_element{ \
975977 _soa_impl_index, _ITERATE_ON_ALL_COMMA (_DECLARE_VIEW_CONST_ELEMENT_CONSTR_CALL, ~, VALUE_LIST) \
0 commit comments