From: David Abrahams (dave_at_[hidden])
Date: 2008-07-02 18:06:01
Giovanni Piero Deretta wrote:
> On Wed, Jul 2, 2008 at 8:40 PM, Eric Niebler <eric_at_[hidden]> wrote:
>> I don't know a sufficiently portable way to ask a type whether it has
>> implemented the result_of protocol. In C++0x, result_of will simply use
>> decltype, so at the very least Phoenix's approach is forward-compatible.
> With 'portable' you mean 'works with non completely compliant compilers'?
> Otherwise I think you can legally sfinae on the presence of both
> result<> and result_type.
Demonstration, please. I don't know of a way to detect a nested
template with SFINAE.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk