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