Skip to content

[2026-06 LWG Motion 17] P3125R6 constexpr pointer tagging#9120

Open
eisenwave wants to merge 1 commit into
cplusplus:mainfrom
eisenwave:motions-2026-06-lwg-17
Open

[2026-06 LWG Motion 17] P3125R6 constexpr pointer tagging#9120
eisenwave wants to merge 1 commit into
cplusplus:mainfrom
eisenwave:motions-2026-06-lwg-17

Conversation

@eisenwave

Copy link
Copy Markdown
Member

Fixes #9104
Also fixes cplusplus/papers#1903

@eisenwave eisenwave added this to the post-2026-06 milestone Jun 14, 2026
@eisenwave eisenwave requested a review from jwakely June 14, 2026 13:31
@eisenwave

Copy link
Copy Markdown
Member Author

Need some help resolving the FIXMEs.

Comment thread source/memory.tex

\begin{itemdescr}
\pnum
\constant

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.

Suggested change
\constant
\constantwhen

Ditto below.

Comment thread source/memory.tex
\pnum
\tcode{tagged_pointer_type} denotes \cv{}~\tcode{void*},
%FIXME: what do we mean by "pointer denotes"? \tcode{pointer()}?
for \cv{} such that pointer denotes \cv{}~\tcode{U*} for some type \tcode{U}.

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.

IIUC the "pointer" should be pointer_type.

I wonder whether \result is suitable here. Also, IIUC, we can just use using tagged_pointer_type = common_type_t<void*, pointer_type>;.

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.

[2026-06 LWG Motion 17] P3125R6 (constexpr pointer tagging) P3125 R5 constexpr pointer tagging

2 participants