Skip to content

Conversation

@Tsche
Copy link
Member

@Tsche Tsche commented Apr 15, 2025

ignore-type's operator= is currently specified as

constexpr const ignore-type operator=(const auto &) const noexcept { return *this; }

this should instead return const ignore-type&.

@eisenwave noted P2968R2 specifies ignore-type as

+// ignore
+struct ignore-type { // exposition only
+  constexpr const ignore-type&
+    operator=(const auto &) const noexcept
+      { return *this; }
+};
+inline constexpr ignore-type ignore;
// 22.4.5, tuple creation functions
-inline constexpr unspecified ignore;

however, #7109 drops the reference qualification on ignore-type::operator='s return type. Therefore I believe this is an editorial issue.

@jensmaurer
Copy link
Member

@jwakely , do you agree?

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

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

I agree

@jensmaurer jensmaurer merged commit 05300d7 into cplusplus:main Apr 23, 2025
1 of 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.

3 participants