Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1262 from denis-sh/use-FieldTypeTuple!S-instead…
…-of-`typeof(S.tupleof)`

Use `FieldTypeTuple!S` instead of `typeof(S.tupleof)`.
  • Loading branch information
dnadlinger committed Apr 23, 2013
2 parents cf3a3ee + 75736f1 commit 8391dcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/traits.d
Expand Up @@ -2786,7 +2786,7 @@ template hasElaborateCopyConstructor(S)
else static if(is(S == struct))
{
enum hasElaborateCopyConstructor = hasMember!(S, "__postblit")
|| anySatisfy!(.hasElaborateCopyConstructor, typeof(S.tupleof));
|| anySatisfy!(.hasElaborateCopyConstructor, FieldTypeTuple!S);
}
else
{
Expand Down Expand Up @@ -2839,7 +2839,7 @@ template hasElaborateAssign(S)

enum hasElaborateAssign = is(typeof(S.init.opAssign(S.init))) ||
is(typeof(S.init.opAssign(lvalueOf))) ||
anySatisfy!(.hasElaborateAssign, typeof(S.tupleof));
anySatisfy!(.hasElaborateAssign, FieldTypeTuple!S);
}
else
{
Expand Down Expand Up @@ -2908,7 +2908,7 @@ template hasElaborateDestructor(S)
else static if(is(S == struct))
{
enum hasElaborateDestructor = hasMember!(S, "__dtor")
|| anySatisfy!(.hasElaborateDestructor, typeof(S.tupleof));
|| anySatisfy!(.hasElaborateDestructor, FieldTypeTuple!S);
}
else
{
Expand Down

0 comments on commit 8391dcb

Please sign in to comment.