Skip to content

[pairs.pair] Fix parameter name in assignment effects - #9376

Merged
jensmaurer merged 1 commit into
cplusplus:mainfrom
firmiana402:editorial/pair-assignment-parameter-name
Nov 9, 2026
Merged

jensmaurer merged 1 commit into
cplusplus:mainfrom
firmiana402:editorial/pair-assignment-parameter-name

Conversation

@firmiana402

Copy link
Copy Markdown
Contributor

The effects of pair::operator=(pair<U1, U2>&& p) const refer to u.second, but the parameter is named p.

This typo was introduced in 63302b5 when applying P2321R2.

Replace u.second with p.second, consistent with the parameter name and the preceding use of p.first.

@jensmaurer
jensmaurer merged commit ff6f2f4 into cplusplus:main Nov 9, 2026
2 checks passed
Sign up for free to 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