Skip to content

Commit

Permalink
Merge pull request #990 from 9rnsr/fixup
Browse files Browse the repository at this point in the history
fixup for pull #1301 and #1309
  • Loading branch information
9rnsr committed Dec 4, 2012
2 parents 47e6293 + afed048 commit 24b7d42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion std/traits.d
Expand Up @@ -2417,8 +2417,10 @@ template hasElaborateAssign(S)
}
else
{
@property auto ref lvalueOf() { static S s = void; return s; }

enum hasElaborateAssign = is(typeof(S.init.opAssign(S.init))) ||
is(typeof(S.init.opAssign({ S s = void; return s; }()))) ||
is(typeof(S.init.opAssign(lvalueOf))) ||
anySatisfy!(.hasElaborateAssign, typeof(S.tupleof));
}
}
Expand Down

0 comments on commit 24b7d42

Please sign in to comment.