Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-01-09 07:18:03


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk