Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<spanstream>: Use static_cast to std::span to avoid ill-formed constructs #4938

Merged
merged 13 commits into from
Sep 9, 2024

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
stl/inc/spanstream Outdated Show resolved Hide resolved
stl/inc/spanstream Outdated Show resolved Hide resolved
@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
stl/inc/spanstream Outdated Show resolved Hide resolved
stl/inc/spanstream Outdated Show resolved Hide resolved
@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
tests/std/tests/P0448R4_spanstream/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P0448R4_spanstream/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P0448R4_spanstream/test.cpp Show resolved Hide resolved
tests/std/tests/P0448R4_spanstream/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P0448R4_spanstream/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P0448R4_spanstream/test.cpp Show resolved Hide resolved
tests/std/tests/P0448R4_spanstream/test.cpp Outdated Show resolved Hide resolved
@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! 🐞 🛠️ ✅

@euvre euvre deleted the issue-004879 branch September 10, 2024 06:37
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