Boost logo

Boost :

Subject: Re: [boost] [utility]result_of - erroneous result type from a C++11 lambda
From: Evgeny Panasyuk (evgeny.panasyuk_at_[hidden])
Date: 2013-04-02 15:40:40


02.04.2013 22:46, Vicente J. Botet Escriba:

> Should then the user of Boost.Thread define BOOST_RESULT_OF_USE_DECLTYPE
> explicitly?

If user is happy with behaviour of decltype on his compiler - then yes,
he may define BOOST_RESULT_OF_USE_DECLTYPE.
I guess that in simple cases result of decltype is OK on most compilers.

As Andrey Semashev pointed out, looks like current GCC implementation of
decltype is not mature enough to be used by default within boost::result_of.

-- 
Evgeny Panasyuk

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk