Skip to content

A couple of utilisations of std::optional#3346

Merged
Lestropie merged 1 commit into
devfrom
stdoptional
May 8, 2026
Merged

A couple of utilisations of std::optional#3346
Lestropie merged 1 commit into
devfrom
stdoptional

Conversation

@Lestropie
Copy link
Copy Markdown
Member

Relevant to #2585.

Claude was not as eager to make use of this functionality as I was. It did find the GLM variance groups that are std::optional-ed in #3313, which I will leave to that PR to change. It also found the DWI and phase encoding scheme extractions done in #3313, though unlike me it opted out of those due to complexity. I think my current instinct is liking this functionality because it implicitly communicates the prospect of an absence of data far more so than a sentinel value, whereas maybe the AI is less concerned with the limitations of human cognition.

Restricted to those scenarios where either a sentinel value did not make sense, or requisite refactoring was minimal.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@Lestropie Lestropie self-assigned this May 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

@Lestropie Lestropie merged commit e499599 into dev May 8, 2026
6 checks passed
@Lestropie Lestropie deleted the stdoptional branch May 8, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant