[Issue 798] New: Template function overloading problems

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 6 06:54:21 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=798

           Summary: Template function overloading problems
           Product: D
           Version: 1.00
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: aarti at interia.pl


class Test {
    static void func(T)(T v) {}
//    static void func() {}                //Error! Solution: static void
func()() {}
//    static void func(int i, float f) {}  //Error! Solution: static void
func()(int i, float f) {}

    static void opCall(T)(T t) {}
    static void opCall()() {}
    //Below line in fact conflicts with opCall()() as commenting it solves
problem - no workaround known
    //static void opCall()(int i, float f) {}

}

void main() {
}


-- 



More information about the Digitalmars-d-bugs mailing list