From: David Abrahams (dave_at_[hidden])
Date: 2004-04-12 06:40:27
"Thorsten Ottosen" <nesotto_at_[hidden]> writes:
>> I don't have any opinion yet.
> I guess I didn't know that I was "misusing" bind(). Anyway, I find it wrong
> bind(foo,_1)(i) and bind(foo,i)() differs.
Naturally it has to differ. bind(foo,i) needs to take a copy of i,
or we wouldn't be able to do things like:
function<void(void)> f(int x)
return bind(square, x * 5);
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk