At least one very promising project has been started to write a front-end which can generate these dispatchers (and other wrapping code) automatically from C++ headers.
英
美
- 这里有必要反映一些C++编译时内省能力的限制:C++无法列举类的成员并找出虚函数。