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;