Custom run-time type system/ library for C++
问题 In an application I'm making at the moment, I have an EventDispatcher class that works with a base Event class. The dispatcher is not templated, it works with the run-time types of each event; this is to allow scripts to inherit from the base Event class and make their own types of events. It'd like this event dispatcher to handle inheritance of events as well. For example, I have FooEvent that inherits from a FooBaseEvent ; whenever a FooEvent occurs, callbacks interested in FooBaseEvent are