Template help - MultiAccess

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Jan 8 12:06:34 PST 2013


On 1/8/13, Era Scarecrow <rtcvb32 at yahoo.com> wrote:
>    template multiAccess(Type, string name, string attributes,
>            choice, bool read, bool write, T ...) {

> I'm calling it with:
>    int choice;
>    writeln(multiAccess!(int, "test", "@safe nothrow pure", choice,
> true, true,

'choice' is not a type, use:

template multiAccess(Type, string name, string attributes,
             alias choice, bool read, bool write, T ...) {


More information about the Digitalmars-d-learn mailing list