I wanted to compare the performance of various call types to class methods in a hierarchy:
- via virtual
- "direct" member calls
- std::function
- boost::function
- My implementation of a std function like object that is intended to by-pass the vtable
In my implementation I essentially just get the member function pointer and object pointer then cast to what GCC internally expects: func(void*,params...).
I tried building with clang but it doesn't like my member function to void* cast.