I wanted to compare the performance of various call types:
- virtual
- direct member calls
- std::function
- boost::function
- My hacky implementation of a std function like object
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.