[Issue 1462] New: Templated constructor not supported
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 31 07:33:32 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1462
Summary: Templated constructor not supported
Product: D
Version: 2.003
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: reiner.pope at gmail.com
I know of no way to create a templated constructor for a class. (This is
useful, for instance, with variadic template args). The following code fails to
parse in compilation:
class Foo
{
this(T...)(T t) {}
}
--
More information about the Digitalmars-d-bugs
mailing list