We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91434fc commit 00201ddCopy full SHA for 00201dd
std/experimental/allocator/building_blocks/free_list.d
@@ -814,8 +814,9 @@ struct ContiguousFreeList(ParentAllocator,
814
import std.experimental.allocator.building_blocks.region : Region;
815
import std.experimental.allocator.gc_allocator : GCAllocator;
816
import std.typecons : Ternary;
817
- alias A = ContiguousFreeList!(Region!GCAllocator, 0, 64);
818
- auto a = A(Region!GCAllocator(1024 * 4), 1024);
+ alias A = ContiguousFreeList!(Region!GCAllocator*, 0, 64);
+ auto r = Region!GCAllocator(1024 * 4);
819
+ auto a = A(&r, 1024);
820
821
assert((() nothrow @safe @nogc => a.empty)() == Ternary.yes);
822
0 commit comments