Bug 22147 – DList can't accept a struct with postblit disabled
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-07-27T08:21:02Z
Last change time
2023-03-13T10:36:06Z
Keywords
pull
Assigned to
No Owner
Creator
Heromyth
Comments
Comment #0 by bitworld — 2021-07-27T08:21:02Z
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;
}
```
Comment #1 by dlang-bot — 2023-03-12T18:58:49Z
@WebFreak001 created dlang/phobos pull request #8714 " fix 22147: allow @disable this(this) T in DList!T " fixing this issue:
- fix 22147: allow @disable this(this) T in DList!T
https://github.com/dlang/phobos/pull/8714
Comment #2 by dlang-bot — 2023-03-13T10:36:06Z
dlang/phobos pull request #8714 " fix 22147: allow @disable this(this) T in DList!T " was merged into master:
- 3b3757af6b1773815f3275e428011c52b5cb2dd2 by WebFreak001:
fix 22147: allow @disable this(this) T in DList!T
https://github.com/dlang/phobos/pull/8714