Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
June 03, 2016 [Issue 16117] std.experimental.alloctor does not work with non default constructible types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16117 Dicebot <public@dicebot.lv> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |public@dicebot.lv --- Comment #1 from Dicebot <public@dicebot.lv> --- I am insisting that there is no bug and the error message is legit. This code doesn't compile either: ``` struct Foo{ @disable this(); } Foo[10] foo; // Error: variable test.foo default construction is disabled for type Foo[10] ``` -- |
June 03, 2016 [Issue 16117] std.experimental.allocator does not work with non default constructible types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16117 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrei@erdani.com Summary|std.experimental.alloctor |std.experimental.allocator |does not work with non |does not work with non |default constructible types |default constructible types -- |
June 03, 2016 [Issue 16117] std.experimental.allocator does not work with non default constructible types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16117 --- Comment #2 from Andrei Alexandrescu <andrei@erdani.com> --- Good point. Should work if the constructor is passed some argument: import std.experimental.allocator; struct Foo{ @disable this(); this(int) {} } auto foos = theAllocator.makeArray!Foo(100, 42); -- |
April 10, 2017 [Issue 16117] std.experimental.allocator does not work with non default constructible types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16117 b2.temp@gmx.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |b2.temp@gmx.com Resolution|--- |INVALID -- |
March 21, 2020 [Issue 16117] std.experimental.allocator does not work with non default constructible types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16117 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|b2.temp@gmx.com | -- |
Copyright © 1999-2021 by the D Language Foundation