Skip to content

[specialized.algorithms.general] Make deref-move constexpr#8422

Closed
cpplearner wants to merge 1 commit into
cplusplus:mainfrom
cpplearner:patch-6
Closed

[specialized.algorithms.general] Make deref-move constexpr#8422
cpplearner wants to merge 1 commit into
cplusplus:mainfrom
cpplearner:patch-6

Conversation

@cpplearner

Copy link
Copy Markdown
Contributor

std::uninitialized_move and std::uninitialized_move_n are constexpr and invoke deref-move, but deref-move is not constexpr. This looks like an obvious mistake.

@tkoeppe

tkoeppe commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

This does not look editorial to me, even if it's obvious. @jwakely: what do you think?

@frederick-vs-ja

Copy link
Copy Markdown
Contributor

Background: P3508R0 and LWG3918, both touching std::uninitialized_move(_n), were adopted at the same meeting, and unfortunately none of them was aware of the other.

@tkoeppe

tkoeppe commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

Background: P3508R0 and LWG3918, both touching std::uninitialized_move(_n), were adopted at the same meeting, and unfortunately none of them was aware of the other.

That sounds like a textbook example of a case for an LWG issue!

But let's see if @jwakely considers this obvious enough to be editorial -- it might be, it's just not a call I want to make on my own.

@jensmaurer jensmaurer added the P1-Important Misapplication of paper, malformed code, internal inconsistencies label Nov 5, 2025
@jwakely

jwakely commented Nov 5, 2025

Copy link
Copy Markdown
Member

I've created LWG4452

@jwakely jwakely closed this Nov 5, 2025
@tkoeppe tkoeppe removed the P1-Important Misapplication of paper, malformed code, internal inconsistencies label Nov 5, 2025
@cpplearner cpplearner deleted the patch-6 branch November 10, 2025 08:24
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.

5 participants