Skip to content

replace std::max_element with std::ranges::max_element where appropriate#990

Merged
bska merged 1 commit into
OPM:masterfrom
akva2:use_ranges_max_element
Feb 24, 2026
Merged

replace std::max_element with std::ranges::max_element where appropriate#990
bska merged 1 commit into
OPM:masterfrom
akva2:use_ranges_max_element

Conversation

@akva2
Copy link
Copy Markdown
Member

@akva2 akva2 commented Feb 24, 2026

the c++-20 constrained algorithm is safer and code is more readable

the c++-20 constrained algorithm is safer and code is more readable
@akva2 akva2 added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Feb 24, 2026
@akva2
Copy link
Copy Markdown
Member Author

akva2 commented Feb 24, 2026

jenkins build this please

Copy link
Copy Markdown
Member

@bska bska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good. I'll merge into master.

@bska bska merged commit b6078a4 into OPM:master Feb 24, 2026
3 checks passed
@akva2 akva2 deleted the use_ranges_max_element branch February 24, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants