Skip to content
Snippets Groups Projects
Verified Commit dfca1c02 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

C++20 modernization: use std::ranges::max_element

parent df1dca90
Branches
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@ IntSequence::getMax() const
{
if (length == 0)
return std::numeric_limits<int>::min();
return *std::max_element(data, data + length);
return *std::ranges::max_element(data, data + length);
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment