Skip to content

Simplify code using std::clamp - #4086

Merged
paulromano merged 1 commit into
openmc-dev:developfrom
GuySten:clamp-simplify
Aug 30, 2026
Merged

Simplify code using std::clamp#4086
paulromano merged 1 commit into
openmc-dev:developfrom
GuySten:clamp-simplify

Conversation

@GuySten

Copy link
Copy Markdown
Contributor

Description

This PR improve code readability by using std::clamp when appropriate.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 18) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@GuySten
GuySten requested review from paulromano and removed request for nelsonag and pshriwiseAugust 30, 2026 08:53

@paulromanopaulromano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@paulromano
paulromano merged commit 504da45 into openmc-dev:developAug 30, 2026
17 checks passed
@GuySten
GuySten deleted the clamp-simplify branch August 30, 2026 18:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@GuySten@paulromano