www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4061] New: Eponymous template templates don't work without aliases

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4061

           Summary: Eponymous template templates don't work without
                    aliases
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: simen.kjaras gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kjaras gmail.com> 2010-04-04 18:11:44
PDT ---
Take this code:

template compareTuple( T... ) {
    template compareTuple( U... ) {
        enum bool compareTuple = is( T == U );
    }
}

// This fails to compile
static assert( compareTuple!( int, float )!( int, float ) );

// This works perfectly
alias compareTuple!( int, float ) foo;
static assert( foo!( int, float ) );

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 04 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4061


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-04-09 00:33:41 PDT ---
*** This issue has been marked as a duplicate of issue 242 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 09 2010