From 80e1b48540f04fd1c72a74c5d058406b654474da Mon Sep 17 00:00:00 2001 From: Eric Cano <37585813+ericcano@users.noreply.github.com> Date: Mon, 12 Jun 2023 18:09:52 +0200 Subject: [PATCH] Update DataFormats/SoATemplate/interface/SoAView.h --- DataFormats/SoATemplate/interface/SoAView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataFormats/SoATemplate/interface/SoAView.h b/DataFormats/SoATemplate/interface/SoAView.h index 20ee58083df3a..53784cc41b79b 100644 --- a/DataFormats/SoATemplate/interface/SoAView.h +++ b/DataFormats/SoATemplate/interface/SoAView.h @@ -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)}; \