Templates and virtual functions
Christopher Wright
dhasenan at gmail.com
Wed Jan 21 15:36:12 PST 2009
dsimcha wrote:
> Every once in a while, it comes up on this NG that a significant limitation of
> templates is that they can't add virtual functions to classes. Of course,
> removing this limitation for the general case is impossible w/o completely
> changing the compilation model in ways that are bad ideas for other reasons.
> However, would it be reasonable to allow _specific instantiations_ of
> templates to add virtual functions? This might be a nice convenience feature.
This is insufficient to be at all useful to me.
More information about the Digitalmars-d
mailing list