KEMBAR78
`<spanstream>`: Use `static_cast` to `std::span` to avoid ill-formed constructs by euvre · Pull Request #4938 · microsoft/STL · GitHub
Skip to content

Conversation

@euvre
Copy link
Contributor

@euvre euvre commented Sep 5, 2024

fix #4879

@euvre euvre requested a review from a team as a code owner September 5, 2024 09:03
@euvre
Copy link
Contributor Author

euvre commented Sep 5, 2024

@microsoft-github-policy-service agree

@StephanTLavavej StephanTLavavej added bug Something isn't working ranges C++20/23 ranges labels Sep 5, 2024
@StephanTLavavej StephanTLavavej self-assigned this Sep 5, 2024
@StephanTLavavej StephanTLavavej removed their assignment Sep 5, 2024
@StephanTLavavej StephanTLavavej changed the title <spanstream>: Use static_cast to std::span to avoid ill-formed constructs <spanstream>: Use static_cast to std::span to avoid ill-formed constructs Sep 7, 2024
@StephanTLavavej StephanTLavavej removed their assignment Sep 7, 2024
@StephanTLavavej
Copy link
Member

Thanks, looks good! I pushed changes for the issues I found.

@CaseyCarter CaseyCarter removed their assignment Sep 8, 2024
@StephanTLavavej StephanTLavavej self-assigned this Sep 9, 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 3da77eb into microsoft:main Sep 9, 2024
39 checks passed
@StephanTLavavej
Copy link
Member

Thanks for fixing this bug in a new feature and thoroughly testing it! 🐞 🛠️ ✅

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

Labels

bug Something isn't working ranges C++20/23 ranges

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

<spanstream>: The span constructed by basic_ispanstream's range constructor may be ill-formed

4 participants