Make Connect() work with overloaded event handlers in C++17. See https://github.com/wxWidgets/wxWidgets/pull/2126