Subject: Re: [boost] [bind] Request: use result_of instead of result_type for functors
From: Eric Niebler (eniebler_at_[hidden])
Date: 2013-02-06 17:56:43
On 13-02-06 02:51 PM, 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...
> Surely Boost.Phoenix.Bind doesn't *require* a decltype-like mechanism ifyou follow the result_of protocol, does it?
That's true, Phoenix bind can (and AFAIK does) just use
boost::result_of. Of course, boost::result_of may in fact use decltype.
result_of never uses Boost.TypeOf. Other parts of Phoenix do use
decltype or TypeOf.
-- Eric Niebler Boost.org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk