I'm trying to create an array of Regex
objects, like so: Regex[] regexes;
.
The compilation fails with main.d(46): Error: template std.regex.Regex(Char) is used as a type
.
I find the documentation cryptic. All I understand is that templates generate code on compilation, but I don't see what's preventing me from creating an array of Regex
.
There's an existing question on StackOverflow with the same problem, but it deals with C++, not D.