http://d.puremagic.com/issues/show_bug.cgi?id=4639
Summary: Built-in primitive types cannot be used as template alias parameters Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: asitdepe...@gmail.com --- Comment #0 from Deokjae Lee <asitdepe...@gmail.com> 2010-08-13 00:45:55 PDT --- import std.stdio; template T(alias X) { } void main() { writeln(typeid(typeof(T!int))); } dmd 2.048 on linux produces an error for the above code. Error: template instance T!(int) does not match template declaration T(alias X) Built-in primitive types cannot be used as template alias parameters. Structs and classes work well. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------