
9 Jan
2006
9 Jan
'06
12:18 p.m.
Douglas Gregor wrote:
So, Peter, any chance of getting a slightly more optimized Boost.Bind that can fit boost::bind(&Test::func, &func, _1) into 12 bytes?
I can't think of an easy way to do that at the moment (compress all placeholders to not take up space). Even if I did, bind(&X::f, &x, _1, true) would still overflow the 12 byte buffer. ;-) One hack-ish solution would be to increase the buffer to 16, possibly even 32, and try the measurements again. This of course has obvious drawbacks for people that use only function<> without bind.