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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/std/tests/GH_002620_construct_at_workaround/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using namespace std;

struct S {
int v;
S(int v) : v(v) {}
S(int v_) : v(v_) {}
fsb4000 marked this conversation as resolved.
Show resolved Hide resolved
S(const S&) = delete;
};

Expand All @@ -20,7 +20,7 @@ union U {

struct copy_elider {
operator S() const {
return S(42);
return S{42};
}
};

Expand Down