Constructor template

bc mi_emayl_adrez at hotmail.com
Wed May 9 00:39:25 PDT 2007


On Wed, 02 May 2007 22:25:14 +0100, BCS <BCS at pathlink.com> wrote:

> niovol wrote:
>> I tried to make a constructor template like this(T)() {...}, but the  
>> compilier doesn't allow to do it. Will there be such possibiliy? Or is  
>> it impossible?
>
> Constructors are never virtual (the reason non-static class member  
> templates are not allowed) so I don't see why they /aren't/ allowed.

non-static member template functions work though, albeit non-virtually.



More information about the Digitalmars-d mailing list