Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 146037c

Browse files
committed
Fix Issue 19902 - hasElaborateCopyConstructor doesn't know about copy constructors
1 parent 7cddf69 commit 146037c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/core/internal/traits.d

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -287,24 +287,6 @@ template hasElaborateCopyConstructor(S)
287287
}
288288
}
289289

290-
template hasElaborateAssign(S)
291-
{
292-
static if (__traits(isStaticArray, S) && S.length)
293-
{
294-
enum bool hasElaborateAssign = hasElaborateAssign!(typeof(S.init[0]));
295-
}
296-
else static if (is(S == struct))
297-
{
298-
enum hasElaborateAssign = is(typeof(S.init.opAssign(rvalueOf!S))) ||
299-
is(typeof(S.init.opAssign(lvalueOf!S))) ||
300-
anySatisfy!(.hasElaborateAssign, FieldTypeTuple!S);
301-
}
302-
else
303-
{
304-
enum bool hasElaborateAssign = false;
305-
}
306-
}
307-
308290
@safe unittest
309291
{
310292
static struct S

0 commit comments

Comments
 (0)