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

change SFINAE constraint on construct_at (MSVC workaround) #2624

Merged
merged 8 commits into from
Jun 19, 2022

Conversation

fsb4000
Copy link
Contributor

@fsb4000 fsb4000 commented Mar 29, 2022

Fixes #2620

EDG gives error on both version of the constraint.

Also the Developer Community has a maintenance now, so I'll create DevCom bugs later(about EDG and MSVC)

@fsb4000 fsb4000 requested a review from a team as a code owner March 29, 2022 20:24
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Mar 29, 2022
stl/inc/xutility Outdated Show resolved Hide resolved
stl/inc/xutility Outdated Show resolved Hide resolved
@StephanTLavavej

This comment was marked as resolved.

@fsb4000

This comment was marked as resolved.

@StephanTLavavej StephanTLavavej self-assigned this Apr 1, 2022
@StephanTLavavej

This comment was marked as outdated.

@StephanTLavavej StephanTLavavej removed their assignment Apr 3, 2022
@StephanTLavavej StephanTLavavej added the blocked Something is preventing work on this label Apr 3, 2022
@StephanTLavavej
Copy link
Member

Unfortunately, this is blocked by VSO-1513874 "Changing construct_at SFINAE causes Modules bogus error C2660: 'operator new': function does not take 3 arguments".

@StephanTLavavej StephanTLavavej added blocked on 17.3p2 and removed blocked Something is preventing work on this labels May 11, 2022
@StephanTLavavej
Copy link
Member

The blocking bug has been fixed for 17.3 Preview 2 (I confirmed that this was one of the last fixes to get in).

@StephanTLavavej
Copy link
Member

I've pushed a merge with main, resolving a trivial adjacent-add conflict in tests/std/test.lst. This should be unblocked now that we've merged toolset update #2791.

@StephanTLavavej StephanTLavavej self-assigned this Jun 19, 2022
@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 3f203cb into microsoft:main Jun 19, 2022
@StephanTLavavej
Copy link
Member

Thanks for finding out how to exceed the compiler's correctness! ✅ ✅ ✅

@fsb4000 fsb4000 deleted the fix2620 branch June 20, 2022 04:06
fsb4000 added a commit to fsb4000/STL that referenced this pull request Aug 13, 2022
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.

<xutility>: SFINAE constraint on construct_at prevents emplacing immovable objects with copy elision
5 participants