File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,13 @@ subPackage {
36
36
auto destFile = file.replace(srcDir, destDir);
37
37
destFile.dirName.mkdirRecurse;
38
38
file.readText.replace("std.experimental.allocator", "stdx.allocator")
39
+ .replace("std.conv", "stdx.allocator.conv")
39
40
.toFile(destFile);
40
41
}
42
+ pkgDir.buildPath("std", "conv.d")
43
+ .readText
44
+ .replace("std.conv", "stdx.allocator.conv")
45
+ .toFile(destDir.buildPath("conv.d"));
41
46
'`
42
47
}
43
48
Original file line number Diff line number Diff line change @@ -11,3 +11,16 @@ void main(string[] args)
11
11
writeln(" allocate: " , buf);
12
12
scope (exit) Mallocator.instance.deallocate(buf);
13
13
}
14
+
15
+ void test ()
16
+ {
17
+ import stdx.allocator : make;
18
+ import stdx.allocator.mallocator : Mallocator;
19
+ alias alloc = Mallocator.instance;
20
+ struct Node
21
+ {
22
+ int x;
23
+ this (int , int ){}
24
+ }
25
+ auto newNode = alloc.make! Node(2 , 3 );
26
+ }
You can’t perform that action at this time.
0 commit comments