On Wednesday, 19 June 2019 at 05:27:12 UTC, lili wrote:
On Tuesday, 18 June 2019 at 17:29:49 UTC, Cym13 wrote:
On Tuesday, 18 June 2019 at 17:25:42 UTC, Cym13 wrote:
On Tuesday, 18 June 2019 at 13:05:03 UTC, lili wrote:
On Tuesday, 18 June 2019 at 12:39:45 UTC, Dennis wrote:
[...]
Thanks a lot, where is a core.stdcpp.array , How to user it?
I test but get a error
```
auto aa = array!(int, 4); //error
```
Please don't shorten your code or errors to the point where
there's hardly any information left: it's hard to help you if
we can't know what you did and what went wrong.
Forgot to say that it's probably because you don't actually
build an array here, try adding parentheses:
```
auto aa = array!(int, 4)();
```
array!(int,4)(); compile occurs a error say: no overload
matches for array
Did you import it properly?
```
void main() {
import core.stdcpp.array;
auto a = array!(int, 4)();
}
```
compiles and runs without issue for me. You'll have to show your
code if you want people to help you there.