Hey, I'm working on an event-based plugin system for my application and I'd need to know if certain event handlers are overridden so I can determine whether they need to be called or not.
So here's an simplified version of my problem https://godbolt.org/z/WEWd7Gd9v and I'm kind of stuck to be honest. If anyone could help it would be greatly appreciated 😄
struct SomeEventA {};
struct SomeEventB {};
struct PluginBase {
virtual void onEvent(SomeEventA& e) { printf("SomeEventA intact!\n");}
virtual void onEvent(SomeEventB& e) { printf("SomeEventB intact!\n");}
};
struct Foo : PluginBase {
using PluginBase::onEvent;
void onEvent(SomeEventA& e) override { printf("SomeEventA override...