How to store a pointer to class contructor

Mike Parker aldacron at gmail.com
Thu Dec 24 12:13:45 UTC 2020


On Thursday, 24 December 2020 at 11:15:28 UTC, Dmitriy Asondo 
wrote:

> Is there any way, for example on compile step, to get class 
> name from class pointer? To automate generation of factory via 
> template

At compile time, you'd get it from the type, not the reference:

typeid(T).name;


More information about the Digitalmars-d-learn mailing list