← Back to index
|
Original Bugzilla link
Bug 4061 – Eponymous template templates don't work without aliases
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-04-04T18:11:00Z
Last change time
2014-02-15T02:44:45Z
Assigned to
nobody
Creator
simen.kjaras
Comments
Comment #0
by simen.kjaras — 2010-04-04T18:11:44Z
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 ) );
Comment #1
by clugdbug — 2010-04-09T00:33:41Z
*** This issue has been marked as a duplicate of issue 242 ***