code formatting issue

bearophile bearophileHUGS at lycos.com
Wed Oct 2 11:57:24 PDT 2013


Alexandr Druzhinin:

> ? I didn't understand about trailing []

I meant something more like this, but I don't know how much of an 
improvement this is:


import std.typecons, std.typetuple;

template Foo(T1, T2) {
     enum Foo = 1;
}

void main() {
     int x;
     float f;
     enum y = Foo!(typeof(TypeTuple!(x, f)));
}


Bye,
bearophile


More information about the Digitalmars-d-learn mailing list