Template type inference problem

Salih Dincer salihdb at hotmail.com
Wed Oct 2 10:11:24 UTC 2024


On Wednesday, 2 October 2024 at 08:55:15 UTC, Manu wrote:
> Does anyone understand why this doesn't work?
>
> ```d
> void f(T)(const(T)[] x, const(T)* y) {}
> ```
> ...

Looking at the protofunction, the test() function should look 
like this:

```d
void test()
{
     int[] x;
     int* y;
     f(x, y);
}
```

SDB at 79


More information about the Digitalmars-d mailing list