Skip to content

Convert contiguous_iterators to pointers correctly - #1527

Merged
Stephan T. Lavavej (StephanTLavavej) merged 5 commits into
microsoft:masterfrom
CaseyCarter:gh1523
Jan 8, 2021
Merged

Convert contiguous_iterators to pointers correctly#1527
Stephan T. Lavavej (StephanTLavavej) merged 5 commits into
microsoft:masterfrom
CaseyCarter:gh1523

Conversation

@CaseyCarter

Copy link
Copy Markdown
Contributor

... even in std algorithms that optimize general contiguous_iterators.

Fixes #1523.

... even in std algorithms that optimize general `contiguous_iterator`s.

Fixes microsoft#1523.
@CaseyCarter Casey Carter (CaseyCarter) added the bug Something isn't working label Dec 10, 2020
@CaseyCarter
Casey Carter (CaseyCarter) requested a review from a team as a code owner December 10, 2020 21:17
@cpplearner

Copy link
Copy Markdown
Contributor

#1433 contains another fix

@StephanTLavavej

Copy link
Copy Markdown
Member

Casey Carter (@CaseyCarter) says that this PR should be merged first, and then #1433 should be merged on top of this, since this is a targeted fix.

@cbezault Curtis J Bezault (cbezault) removed their assignment Dec 21, 2020
@StephanTLavavej

Copy link
Copy Markdown
Member

I've pushed a merge; this PR was editing !_HAS_IF_CONSTEXPR codepaths that have simply been deleted.

Comment thread stl/inc/xutility Outdated
Comment thread tests/std/tests/VSO_0180469_ptr_cat/test.compile.pass.cpp Outdated
Comment thread tests/std/tests/VSO_0180469_ptr_cat/test.compile.pass.cpp Outdated
Comment thread tests/std/tests/VSO_0180469_ptr_cat/test.compile.pass.cpp Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

FYI Curtis J Bezault (@cbezault), I pushed minor changes after you approved.

@StephanTLavavej

Copy link
Copy Markdown
Member

FYI Curtis J Bezault (@cbezault) I pushed changes again, so that the tests will pass in the MSVC-internal repo (which insists on linking and running all executables, whereas you had taught the GitHub test harness to skip linking/running test.compile.pass.cpp 😻).

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit ac4fde7 into microsoft:master Jan 8, 2021
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for fixing this bug! 😺

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

None yet

Development

Successfully merging this pull request may close these issues.

Some StdLib algorithms fail /std:c++latest compilation with custom contiguous iterators (Visual Studio 2019 16.8)

4 participants