Hi!
I have the class ' Component' with a std::string variable, 'name' that his value is typeid(this).name(), call from constructor.
The problem is that when a class inherits from Component remains typeid 'Component'. If I want the name of the Cube was 'Cube', but from the function of Component ... How could I?
Yes, if a call the function in main(), this returns the class correctly. But I need call this function from the constructor of Component. I need that the name generation is automatic.