Skip to content

Commit

Permalink
Update DataFormats/SoATemplate/interface/SoAView.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcano authored Jun 12, 2023
1 parent 9221ba2 commit 80e1b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataFormats/SoATemplate/interface/SoAView.h
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ namespace cms::soa {
SOA_HOST_DEVICE SOA_INLINE \
element operator[](size_type index) { \
if constexpr (rangeChecking == cms::soa::RangeChecking::enabled) { \
if (index >= base_type::elements_ || index < 0) \
if (index >= base_type::elements_ || index < 0) \
SOA_THROW_OUT_OF_RANGE("Out of range index in " #VIEW "::operator[]") \
} \
return element{index, _ITERATE_ON_ALL_COMMA(_DECLARE_VIEW_ELEMENT_CONSTR_CALL, ~, VALUE_LIST)}; \
Expand Down

0 comments on commit 80e1b48

Please sign in to comment.