Constant template arguments
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jan 3 04:45:46 PST 2015
> void foo(T)(Unqual!T a, Unqual!T b) {
> a = b;
> b = a;
> }
> void main() {
> const int x, y;
> foo(x, y);
> }
Missing line:
import std.traits: Unqual;
Bye,
bearophile
More information about the Digitalmars-d
mailing list