Template instance does not match template declaration
0xEAB
desisma at heidel.beer
Fri Aug 15 12:18:30 UTC 2025
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.
More information about the Digitalmars-d-learn
mailing list