Subject: Re: [boost] [bind] Request: use result_of instead of result_type for functors
From: Joel de Guzman (djowel_at_[hidden])
Date: 2013-02-06 18:06:01
On 2/7/13 2:40 AM, Jeffrey Lee Hellrung, Jr. wrote:
> On Wed, Feb 6, 2013 at 9:40 AM, Eric Niebler <eniebler_at_[hidden]> wrote:
>> On 13-02-06 09:30 AM, Jeffrey Lee Hellrung, Jr. wrote:
>>> On Tue, Feb 5, 2013 at 11:09 PM, Eric Niebler <eniebler_at_[hidden]>
>>>> On 13-02-05 05:21 PM, Jeffrey Lee Hellrung, Jr. wrote:
>>>>> given that Boost.Bind has been largely superseded
>>>>> by Boost.Phoenix.Bind.
>>>> I'd like to address just this part. It's not true, AFAIK. Boost.Bind
>>>> still has its place.
>>> Can you elaborate?
>> Boost.Bind is a smaller, simpler library that pulls in less code and has
>> fewer dependencies. It also doesn't do anything that would require
>> decltype, or an emulation thereof (Boost.TypeOf).
>> If Boost.Bind meets my needs (and std::bind is not available), I use it.
> Thanks, makes sense, except I wasn't aware that Boost.Phoenix used any kind
> of decltype-like mechanism...
It does not use decltype. It does, however, use Boost.TypeOf in some places
for type deduction, which in turn uses decltype when available.
-- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk