A struct is meant to take only integers as parameters:

struct SomeStruct(intergers...) {
    int opIndex(size_t idx) /* ... */ {
        return integers[idx]; // Error ...
    }
}

alias SomeStruct!(1, 2, 3) ss;


But it results in:
Error: undefined identifier integers, did you mean tuple intergers?


How can this problem be solved?


Reply via email to