Summary: Cannot compare instances of ParameterStorageClassTuple
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2011-10-25 
09:43:42 PDT ---
import std.traits;

void test(T1, T2)(T1 t1, T2 t2)
    alias ParameterTypeTuple Types;
    static assert(is(Types!T1 == Types!T2));  // ok

    alias ParameterStorageClassTuple Stores;    
    static assert(Stores!(t1) == Stores!(t2)); // NG
    static assert(Stores!T1 == Stores!T2);     // NG
    static assert(is(Stores!t1 == Stores!t2)); // NG
    static assert(is(Stores!T1 == Stores!T2)); // NG

void main()
    test( (int){},

What gives? ParameterTypeTuple doesn't suffer from these issues. It seems it's
impossible to compare equality of storage classes between two functions. :s

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to