Skip to content

Remove _ITERATOR_DEBUG_ARRAY_OVERLOADS - #735

Merged
Casey Carter (CaseyCarter) merged 5 commits into
microsoft:masterfrom
miscco:array_overload
Apr 25, 2020
Merged

Casey Carter (CaseyCarter) merged 5 commits into
microsoft:masterfrom
miscco:array_overload

Conversation

@miscco

Copy link
Copy Markdown
Contributor

This fixes #660

I ran the tests that were visibly affected on my machine. That said I am curious about the tests on other architectures

Comment thread stl/inc/yvals_core.h Outdated
Comment thread tests/std/include/instantiate_algorithms.hpp Outdated

@BillyONeal Billy O'Neal (BillyONeal) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can _Array_iterator or other machinery in be pushed down now?

Comment thread tests/std/include/instantiate_algorithms.hpp Outdated
@miscco

Copy link
Copy Markdown
Contributor Author

Can _Array_iterator or other machinery in be pushed down now?

I am unsure whether I am the best to answer that but will have a look tomorrow

@BillyONeal

Copy link
Copy Markdown
Member

Can _Array_iterator or other machinery in be pushed down now?

I am unsure whether I am the best to answer that but will have a look tomorrow

I just did a grep and it looks like that thing is only used by after this change so it can be moved there, but I might have missed something.

Thanks for your contribution!

@miscco

Copy link
Copy Markdown
Contributor Author

I moved _Array_const_iterator and _Array_iterator to

This is an unrelated cleanup.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great - thanks for the extensive test updates, moving the array iterators, and removing the now-unused _STL_VERIFY_ARRAY_SIZE. You really went above and beyond!

In fact, this change was so good, I noticed that the surrounding code in the STL was bogus in comparison. Specifically, near an IDAO removal, I noticed that we were testing _HAS_IF_CONSTEXPR within _HAS_CXX17 (which is totally unnecessary - C++17 implies if constexpr availability). I found no other occurrences throughout the STL, so I simply pushed a commit to your PR.

@BillyONeal

Copy link
Copy Markdown
Member

Thanks so much :D

@CaseyCarter
Casey Carter (CaseyCarter) merged commit ca032ae into microsoft:master Apr 25, 2020
@CaseyCarter

Copy link
Copy Markdown
Contributor

Thanks again, Michael Schellenberger Costa (@miscco)!

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

Labels

throughput Must compile faster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/ / : _ITERATOR_DEBUG_ARRAY_OVERLOADS should be removed

4 participants