mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 23:29:01 +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))
|
||||
{
|
||||
enum hasElaborateAssign = is(typeof(S.init.opAssign(rvalueOf!S))) ||
|
||||
is(typeof(S.init.opAssign(lvalueOf!S))) ||
|
||||
anySatisfy!(.hasElaborateAssign, FieldTypeTuple!S);
|
||||
static if(is(typeof(S.init.opAssign(rvalueOf!S))) ||
|
||||
is(typeof(S.init.opAssign(lvalueOf!S))))
|
||||
enum hasElaborateAssign = true;
|
||||
else
|
||||
enum hasElaborateAssign = anySatisfy!(.hasElaborateAssign, FieldTypeTuple!S);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue