A request for an easier way to pass a storage class to a template

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Oct 25 09:04:34 PDT 2011


Should I file the following as a bug?

import std.traits;

void foo(int) { }
void bar(ref int) { }

void main()
{
    pragma(msg, ParameterTypeTuple!foo);  // (int)
    pragma(msg, ParameterTypeTuple!bar);  // (ref int)
    static assert(is(ParameterTypeTuple!foo ==
ParameterTypeTuple!bar));  // pass
}


More information about the Digitalmars-d mailing list