Template instance does not match template declaration
Marc
mailnawman at gmail.com
Fri Aug 15 12:26:26 UTC 2025
On Friday, 15 August 2025 at 12:18:30 UTC, 0xEAB wrote:
> On Friday, 15 August 2025 at 12:02:19 UTC, Marc wrote:
>> Can anyone please help me getting it to work?
>
> It seems like you’ve accidentally used the wrong syntax for the
> template parameter.
> To make the parameter a value parameter of type `size_t`, write:
>
> ```
> size_t getCol(size_t N)() {
> return N;
> }
> ```
>
> Also, your return type was off. Can’t return data from a `void`
> function.
Thanks. It work now.
More information about the Digitalmars-d-learn
mailing list