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: nob...@puremagic.com ReportedBy: simen.kja...@gmail.com --- Comment #0 from Simen Kjaeraas <simen.kja...@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: -------