C++ has the same solution as I propose here: A wide function pointer type.
In C++ it is called std::function, but this comes with a bit of baggage. C++ 26 has std::function_ref which would be the exact equivalent to my wide pointer.
https://godbolt.org/z/GaP9jb5rE