We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24050c5 commit 711d971Copy full SHA for 711d971
std/experimental/allocator/building_blocks/free_list.d
@@ -790,8 +790,9 @@ struct ContiguousFreeList(ParentAllocator,
790
import std.experimental.allocator.building_blocks.region : Region;
791
import std.experimental.allocator.gc_allocator : GCAllocator;
792
import std.typecons : Ternary;
793
- alias A = ContiguousFreeList!(Region!GCAllocator, 0, 64);
794
- auto a = A(Region!GCAllocator(1024 * 4), 1024);
+ alias A = ContiguousFreeList!(Region!GCAllocator*, 0, 64);
+ auto r = Region!GCAllocator(1024 * 4);
795
+ auto a = A(&r, 1024);
796
797
assert((() nothrow @safe @nogc => a.empty)() == Ternary.yes);
798
0 commit comments