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

Fix bug in the construct_at optimization #608

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

miscco
Copy link
Collaborator

@miscco miscco commented Oct 25, 2023

When looking at mdspan I found that our std::construct_at optimization also applies to narrowing conversions between arithmetic types.

We need to avoid this as it is a hard error. While we are at it clean the implementation up a bit.

It was surprisingly hard to get it to work everywhere, as we are dealing with variadic packs

@miscco miscco requested review from a team as code owners October 25, 2023 09:09
@miscco miscco requested review from wmaxey and elstehle and removed request for a team October 25, 2023 09:09
@miscco miscco force-pushed the fix_construct_at_again branch 2 times, most recently from a60912b to a6bd728 Compare October 25, 2023 09:39
@miscco miscco merged commit 61a9bec into NVIDIA:main Oct 26, 2023
510 checks passed
@miscco miscco deleted the fix_construct_at_again branch October 26, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants