What's the difference between typeid(*this).name() and typeid(this).name() in base class

后端 未结 0 507
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 13:23
class Event
{
public:
    virtual std::string getEventType()
    {
        return typeid(*this).name();
    }
}

class NotWorkEvent
{
public:
    virtual std::string         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题