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

<tuple>, <utility>: Make tuple-related functions ADL-proof #4488

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Mar 17, 2024

Towards #140. These functions are made ADL-proof:

  • pair's piecewise constructor,
  • tuple_cat,
  • apply, and
  • make_from_tuple.

Drive-by change:

  • Include <cstddef> for size_t in Dev11_0000000_tuple_cat/test.cpp (the use of size_t is pre-existing).

There're some tuple-related unqualified internal function calls in <ranges>. I'll do the cleanup in another PR.

This PR also largely reorganizes Dev11_0000000_tuple_cat/test.cpp (by splitting the original main into several functions) to test constexpr-friendliness.

- `_Tuple_get` in `pair`'s piecewise constructor
- `_Tuple_cat`
- `_Apply_impl`
- `_Make_from_tuple_impl`
@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner March 17, 2024 11:12
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Mar 18, 2024
@StephanTLavavej StephanTLavavej self-assigned this Mar 18, 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 4787efe into microsoft:main Mar 19, 2024
35 checks passed
@StephanTLavavej
Copy link
Member

🍐 🍐 🍐

@frederick-vs-ja frederick-vs-ja deleted the adl-proof-pair-tuple branch March 19, 2024 23:17
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.

2 participants