template instance does not match template declaration

kdevel kdevel at vogtner.de
Fri Feb 25 23:11:46 UTC 2022


> ```main.d
> module main; // main.d
> import std.traits;
> import model;
>
> void main ()
> {
>    enum Q = Parameters!read;
> }
> ```

Will not compile with selective import commented out. Hence 
main.d must read (alias instead of enum):

```main.d
module main; // main.d
import std.traits;
import model;

void main ()
{
    alias Q = Parameters!(read);
}
```


More information about the Digitalmars-d-learn mailing list