@@ -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< \
@@ -786,7 +788,7 @@ namespace cms::soa {
786788 element operator [](size_type _soa_impl_index) { \
787789 if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
788790 if (_soa_impl_index >= base_type::elements_ or _soa_impl_index < 0 ) \
789- SOA_THROW_OUT_OF_RANGE (" Out of range index in " #VIEW " ::operator[]" ) \
791+ SOA_THROW_OUT_OF_RANGE (" Out of range index in " #VIEW " ::operator[]" , _soa_impl_index, base_type::elements_) \
790792 } \
791793 return element{_soa_impl_index, _ITERATE_ON_ALL_COMMA (_DECLARE_VIEW_ELEMENT_CONSTR_CALL, ~, VALUE_LIST)}; \
792794 } \
@@ -971,7 +973,7 @@ namespace cms::soa {
971973 const_element operator [](size_type _soa_impl_index) const { \
972974 if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
973975 if (_soa_impl_index >= elements_ or _soa_impl_index < 0 ) \
974- SOA_THROW_OUT_OF_RANGE (" Out of range index in " #CONST_VIEW " ::operator[]" ) \
976+ SOA_THROW_OUT_OF_RANGE (" Out of range index in " #CONST_VIEW " ::operator[]" , _soa_impl_index, elements_) \
975977 } \
976978 return const_element{ \
977979 _soa_impl_index, _ITERATE_ON_ALL_COMMA (_DECLARE_VIEW_CONST_ELEMENT_CONSTR_CALL, ~, VALUE_LIST) \
0 commit comments