Constant template arguments

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 3 04:44:34 PST 2015


Tobias Pankrath:

> Like Unqual!T?

It doesn't seem to work:


void foo(T)(Unqual!T a, Unqual!T b) {
     a = b;
     b = a;
}
void main() {
     const int x, y;
     foo(x, y);
}


Bye,
bearophile


More information about the Digitalmars-d mailing list