
2 Aug
2006
2 Aug
'06
2:22 a.m.
On 5/9/06, David Abrahams <dave@boost-consulting.com> wrote:
One happy day, we'll have auto and decltype...
Until then, we have no reasonable way to declare the type of bind expressions. So I got to thinking, maybe something like this could be made to work:
result_of<bind_(std::minus<int>, int, _1_)>::type f = bind(std::minus<int>(), 3, _1);
For lambda, I guess we could do something like this:
result_of<minus_(int, _1_)>::type f = 3 - _1;
Does this direction make sense?
Hi, I would like to know if something like this were included in boost. It's only for boost that I want, and I don't want to pay for TYPEOF library. (MSVC8 only with emulation).
-- Dave Abrahams Boost Consulting www.boost-consulting.com
-- Felipe Magno de Almeida