[Issue 22147] New: DList can't accept a struct with postblit disabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 27 08:21:02 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22147

          Issue ID: 22147
           Summary: DList can't accept a struct with postblit disabled
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: bitworld at qq.com

The error:

```
..\..\src\phobos\std\container\dlist.d(687,24): Error: struct `std.range.Take`
does not match any template declaration
source\app.d(227,5): Error: template instance `std.container.dlist.DList!(B)`
error instantiating
```

The test code:
```
struct B
{
    @disable this(this);

    // this(ref return scope inout B rhs) {}  // still not work  
}

void testDlist() {
    import std.container.dlist;
    DList!B bb;
}
```

--


More information about the Digitalmars-d-bugs mailing list