[Boost-bugs] [Boost C++ Libraries] #7754: Allow result_of to fall back on decltype

Subject: [Boost-bugs] [Boost C++ Libraries] #7754: Allow result_of to fall back on decltype
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-01 09:52:06


#7754: Allow result_of to fall back on decltype
----------------------------------------------+-----------------------------
 Reporter: nathan.crookston+boost@… | Owner: djwalker
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: result_of
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
----------------------------------------------+-----------------------------
 result_of uses decltype by default on very few compilers, since most
 current compilers' decltype support doesn't work for some TR1-style usage.

 Many of those same compilers support C++11 lambdas which don't follow TR1
 result_of protocol. Currently, this makes lambdas very difficult to use
 with other code using result_of.

 The attached code allows compilers which partially support decltype to use
 it only on functors which don't publish a result_type or result struct.

 It also contains tests & doc changes. Compiled with VC10, clang++3.1 &
 g++4.5 (both compilers with and without -std=c++0x).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7754>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC