mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 15:17:12 +03:00
Fix pull #1598.
This commit is contained in:
parent
bf640ea8bc
commit
2e75d66c6e
1 changed files with 5 additions and 3 deletions
|
@ -2901,9 +2901,11 @@ template hasElaborateAssign(S)
|
||||||
}
|
}
|
||||||
else static if(is(S == struct))
|
else static if(is(S == struct))
|
||||||
{
|
{
|
||||||
enum hasElaborateAssign = is(typeof(S.init.opAssign(rvalueOf!S))) ||
|
static if(is(typeof(S.init.opAssign(rvalueOf!S))) ||
|
||||||
is(typeof(S.init.opAssign(lvalueOf!S))) ||
|
is(typeof(S.init.opAssign(lvalueOf!S))))
|
||||||
anySatisfy!(.hasElaborateAssign, FieldTypeTuple!S);
|
enum hasElaborateAssign = true;
|
||||||
|
else
|
||||||
|
enum hasElaborateAssign = anySatisfy!(.hasElaborateAssign, FieldTypeTuple!S);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue