How to get runtime type of this?

Jacob Carlborg doob at me.com
Fri Oct 4 05:02:16 PDT 2013


On 2013-10-04 10:42, Zhouxuan wrote:

> Unfortunately it doesn't work if C inherits from B.

What you need is a template constructor in B, just as in A. But it seems 
it's not possible to forward the template type to the base class.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list