Skip to content

Conversation

@frederick-vs-ja
Copy link
Contributor

Fixes #4434.

Notes:

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner March 4, 2024 15:05
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Mar 4, 2024
@StephanTLavavej StephanTLavavej self-assigned this Mar 4, 2024
Comment on lines +182 to +185
static_assert(_Is_any_of_v<remove_cv_t<typename iterator_traits<_RanIt>::value_type>, //
unsigned int, unsigned long, unsigned long long>,
"N4971 [rand.util.seedseq]/7 requires the value type of the iterator to be an unsigned type that is at "
"least 32-bit.");
Copy link
Member

Choose a reason for hiding this comment

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

No change requested: I wouldn't have used remove_cv_t here (elsewhere we assume that iterator_traits::value_type is cv-unqualified), and @CaseyCarter would have said "unsigned integer type" to match the Standard, but neither are worth resetting testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm... [fs.path.req]/2.2 currently accepts a const-qualified value_type, but [fs.req]/3 doesn't seem so. Perhaps there should be an LWG issue for this.

@StephanTLavavej StephanTLavavej removed their assignment Mar 5, 2024
@StephanTLavavej StephanTLavavej self-assigned this Mar 6, 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 042630a into microsoft:main Mar 8, 2024
@StephanTLavavej
Copy link
Member

Thanks for emitting more compiler errors! 🤖 ❌ 😹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

<random>: Enforce seed_seq::generate()'s mandate for RandomAccessIterator

3 participants