Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkIndexRange.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,12 @@ class IndexRange final

/** Constructs a range of indices for the specified grid size.
*/
explicit IndexRange(const SizeType& size)
explicit IndexRange(const SizeType& gridSize)
:
// Note: Use parentheses instead of curly braces to initialize data members,
// to avoid AppleClang 6.0.0.6000056 compile errors, "no viable conversion..."
m_MinIndex(),
m_MaxIndex(CalculateMaxIndex({}, size))
m_MaxIndex(CalculateMaxIndex({}, gridSize))
{
}

Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/test/itkIndexRangeGTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ TEST(IndexRange, IteratorsCanBePassedToStdForEach)

std::for_each(range.begin(), range.end(), [](const IndexType index)
{
EXPECT_TRUE(index >= IndexType{});
EXPECT_TRUE(index >= IndexType());
});
}

Expand All @@ -155,7 +155,7 @@ TEST(IndexRange, CanBeUsedAsExpressionOfRangeBasedForLoop)

for (auto&& index : range)
{
EXPECT_TRUE(index >= IndexType{});
EXPECT_TRUE(index >= IndexType());
}
}

Expand Down