Why auto variant isn’t working compared to (equivalent?) template version of function?
I’m working on a C++ project where I want to dispatch events to different modules. I have a base Event class and several derived event types (EventA, EventB, EventC). My modules inherit from a templated Module base class, which uses concepts and SFINAE to dispatch events to the handler in the derived class if it is defined.