Skip to content

P3815R1 Add scope_association concept to P3149#8531

Merged
tkoeppe merged 1 commit into
mainfrom
motions-2025-11-lwg-16
Dec 14, 2025
Merged

P3815R1 Add scope_association concept to P3149#8531
tkoeppe merged 1 commit into
mainfrom
motions-2025-11-lwg-16

Conversation

@jensmaurer

Copy link
Copy Markdown
Member

Fixes NB FI-392, CA-393 (C++26 CD).

Fixes #8475
Fixes cplusplus/papers#2426

Fixes cplusplus/nbballot#967
Fixes cplusplus/nbballot#968

@jensmaurer jensmaurer added this to the post-2025-11 milestone Nov 15, 2025
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
@\exposid{sndr}@.reset();
@\exposid{assoc}@([&] {
@\exposid{sender-ref}@ guard{addressof(@\exposid{sndr}@)};
auto assoc = t.try_associate();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we choose a different name for this local variable 'assoc' which doesn't shadow the data member assoc?

@jensmaurer jensmaurer Nov 28, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ass?

Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex Outdated
Comment thread source/exec.tex
// \ref{exec.simple.counting.token}, token
struct token;

using @\exposid{assoc-t}@ = @\exposid{association-t}@<simple_counting_scope>; // \expos

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
using @\exposid{assoc-t}@ = @\exposid{association-t}@<simple_counting_scope>; // \expos
// \ref{exec.simple.counting.assoc}, assoc
using @\exposid{assoc-t}@ = @\exposid{association-t}@<simple_counting_scope>; // \expos

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That label doesn't exist.

@tkoeppe tkoeppe force-pushed the motions-2025-11-lwg-16 branch from 9b0f2d1 to 0f5e480 Compare December 14, 2025 23:11
@tkoeppe tkoeppe requested a review from jwakely December 14, 2025 23:11
Fixes NB FI 392, CA 393 (C++26 CD).

Editorial note:
* [exec.associate] Fix missing template argument
* Use braces in if statements
@tkoeppe tkoeppe force-pushed the motions-2025-11-lwg-16 branch from 0f5e480 to 2acc6ba Compare December 14, 2025 23:29
@tkoeppe tkoeppe dismissed stale reviews from eisenwave and jwakely December 14, 2025 23:30

Resolved

@tkoeppe tkoeppe merged commit 4be2de1 into main Dec 14, 2025
4 checks passed
@jensmaurer jensmaurer deleted the motions-2025-11-lwg-16 branch March 29, 2026 20:56
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.

[2025-11 LWG Motion 16] P3815R1 Add scope_association concept to P3149 P3815 R1 Add scope_association concept to P3149

6 participants