Skip to content

[2026-06 LWG Motion 3] P3798R1 The unexpected in std::expected#9127

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

[2026-06 LWG Motion 3] P3798R1 The unexpected in std::expected#9127
eisenwave wants to merge 1 commit into
cplusplus:mainfrom
eisenwave:motions-2026-06-lwg-3

Conversation

@eisenwave

Copy link
Copy Markdown
Member

Fixes #9090
Also fixes cplusplus/papers#2403

@eisenwave eisenwave added this to the post-2026-06 milestone Jun 14, 2026
@eisenwave eisenwave changed the title P3798R1 The unexpected in std::expected [2026-06 LWG Motion 3] P3798R1 The unexpected in std::expected Jun 14, 2026
Comment thread source/utilities.tex
Comment on lines +9430 to +9432
\begin{codeblock}
return !has_value();
\end{codeblock}

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.

I don't think this needs to be a codeblock, does it?

Suggested change
\begin{codeblock}
return !has_value();
\end{codeblock}
\tcode{return !has_value();}

(Also I wonder why we didn't ask for it to be just Returns: !has_value() since there are no preconditions or other special effects of has_value() that we need to inherit here.

Comment thread source/utilities.tex
Comment on lines +10473 to +10475
\begin{codeblock}
return !has_value();
\end{codeblock}

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
\begin{codeblock}
return !has_value();
\end{codeblock}
\tcode{return !has_value();}

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 3] P3798R1 The unexpected in std::expected P3798 R1 The unexpected in std::expected

2 participants