www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22147] New: DList can't accept a struct with postblit disabled

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 puremagic.com
          Reporter: bitworld 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;
}
```

--
Jul 27