We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3e1e02 + a37bf81 commit 61e1525Copy full SHA for 61e1525
1 file changed
Modules/Core/Common/include/itkImageRegionRange.h
@@ -148,7 +148,14 @@ class ImageRegionRange final
148
void
149
Increment() noexcept
150
{
151
- m_BufferIterator += m_OffsetTable[VIndex];
+ if constexpr (VIndex == 0)
152
+ {
153
+ ++m_BufferIterator;
154
+ }
155
+ else
156
157
+ m_BufferIterator += m_OffsetTable[VIndex];
158
159
160
if constexpr (VIndex < (ImageDimension - 1))
161
@@ -172,7 +179,14 @@ class ImageRegionRange final
172
179
173
180
Decrement() noexcept
174
181
175
- m_BufferIterator -= m_OffsetTable[VIndex];
182
183
184
+ --m_BufferIterator;
185
186
187
188
+ m_BufferIterator -= m_OffsetTable[VIndex];
189
176
190
177
191
178
192
0 commit comments