April 05, 2010 [Issue 4061] New: Eponymous template templates don't work without aliases | ||||
---|---|---|---|---|
| ||||
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: ------- |
April 09, 2010 [Issue 4061] Eponymous template templates don't work without aliases | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Kjaeraas | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation