They are not the same type:

void main() {
    import std.typecons: Tuple;
    alias T1 = const Tuple!(int, int);
    alias T2 = Tuple!(const int, const int);
    static assert(is(T1 == T2)); // Fails.
}


This type difference causes some troubles when you use tuples.

Bye,
bearophile

Reply via email to