[Boost-bugs] [Boost C++ Libraries] #7312: boost::result_of can't eval C++2011 lambda 's return type, should use C++2011 std::result_of

Subject: [Boost-bugs] [Boost C++ Libraries] #7312: boost::result_of can't eval C++2011 lambda 's return type, should use C++2011 std::result_of
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-31 15:28:26


#7312: boost::result_of can't eval C++2011 lambda 's return type,should use
C++2011 std::result_of
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: utility
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 This will make boost::range 's adaptor fail.
 Think this code:
     vector<int> v={1,2};
     for (auto x : transform(v, [](int t1){return t1 + 2;}))
     {
         cout << x << endl;
     }
 I didn't want use
 transform(v, function<int (int)>([](int t1){return t1 + 2;}))

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7312>
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:10 UTC