Skip to content

Conversation

@cpplearner
Copy link
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
Copy link
Contributor

tkoeppe commented Nov 5, 2025

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

@frederick-vs-ja
Copy link
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
Copy link
Contributor

tkoeppe commented Nov 5, 2025

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
Copy link
Member

jwakely commented Nov 5, 2025

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