|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-11-05 07:50:01
"Peter Dimov" <pdimov_at_[hidden]> writes:
> David Abrahams wrote:
>> "Peter Dimov" <pdimov_at_[hidden]> writes:
>>
>>> Of course f = t; is merely a shorthand way of spelling f =
>>> boost::lambda::constant(t), but a dependency on lambda isn't always
>>> desirable.
>>>
>>> Thoughts?
>>
>> By the same token, one could argue that this functionality ought to
>> be pushed into boost::bind.
>
> I'm not sure what you mean. What functionality ought to be pushed into
> boost::bind?
The ability to build an always(whatever) function object:
f = boost::bind(t);
-- Dave Abrahams Boost Consulting http://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