Template type inference problem

Manu turkeyman at gmail.com
Wed Oct 2 23:30:25 UTC 2024


On Wed, 2 Oct 2024 at 20:16, Salih Dincer via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> 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
>

That's not the code in question.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20241003/45a69e57/attachment.htm>


More information about the Digitalmars-d mailing list