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;
Mike Parker via Digitalmars-d-learn Thu, 24 Dec 2020 04:15:30 -0800
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;