D: There seems to be no std.container.Array of struct const pointers being created
Suppose I have a struct type Foo
. I am trying to create std.container.Array
constant pointers to Foo
. I tried the following first:
import std.container;
alias FooArray = Array!(const(Foo*));
However, this causes a compiler error. Then I tried it with fewer parentheses:
alias FooArray = Array!(const Foo*);
But this gave the same error ( error instantiating
apparently). What am I doing wrong here?
+3
source to share