Boost logo

Boost :

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:56:10

On 2/7/13 6:51 AM, Nathan Ridge wrote:
>>> 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...
>> - Jeff
> Surely Boost.Phoenix.Bind doesn't *require* a decltype-like mechanism ifyou follow the result_of protocol, does it?
> Regards,Nate

Phoenix *bind* does not use decltype nor Boost.TypeOf. Phoenix uses
Boost.TypeOf (which uses decltype when available) to deduce types
on operations such as (_1 * _2).


Joel de Guzman

Boost list run by bdawes at, gregod at, cpdaniel at, john at