
4 Jun
2009
4 Jun
'09
2:14 p.m.
I've read that bind can have significant overhead unless your parameters are small (because then it can use the small buffer optimization). But why does it have anymore overhead than copying the parameters and assigning a function pointer? I suspect support for something (maybe member function pointers + multiple inheritance?) is responsible but I'm not sure what. I tried looking through bind.hpp but trying to figure out what it's actually doing amongst all the compiler workarounds and different parameter versions it's difficult to tell what's going on.