Skip to content

Conversation

Andor233
Copy link
Contributor

Fix #4507

@Andor233 Andor233 requested a review from a team as a code owner May 22, 2024 08:48
@Andor233 Andor233 changed the title Fix #4507 Fix #4507: LWG-4053 Unary call to std::views::repeat does not decay the argument May 22, 2024
@StephanTLavavej StephanTLavavej added LWG Library Working Group issue ranges C++20/23 ranges labels May 22, 2024
@StephanTLavavej StephanTLavavej self-assigned this May 22, 2024
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit ff0cff1 into microsoft:main May 23, 2024
@StephanTLavavej
Copy link
Member

Thanks for implementing this LWG issue resolution! 🛠️ 😻 🚀

This change is expected to ship in VS 2022 17.11 Preview 3.

{
using RPV = ranges::repeat_view<const char*>;

static_assert(same_as<decltype(views::repeat("foo", unreachable_sentinel)), RPV>);
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, these static_assert's actually tested the changes in LWG-4054, not LWG-4053 only. I'll fix this in a new PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LWG Library Working Group issue ranges C++20/23 ranges
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

LWG-4053 Unary call to std::views::repeat does not decay the argument
3 participants