Boost C++ Libraries: Ticket #7311: boost::result_of can't eval C++2011 lambda 's return type,should use C++2011 std::result_of https://svn.boost.org/trac10/ticket/7311 <p> This will make boost::range 's adaptor fail. Think this code: </p> <blockquote> <p> vector&lt;int&gt; v={1,2}; for (auto x : transform(v, [](int t1){return t1 + 2;})) { </p> <blockquote> <p> cout &lt;&lt; x &lt;&lt; endl; </p> </blockquote> <p> } </p> </blockquote> <p> I didn't want use transform(v, function&lt;int (int)&gt;([](int t1){return t1 + 2;})) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7311 Trac 1.4.3 Michel Morin Tue, 25 Sep 2012 14:18:48 GMT status, component changed; resolution set https://svn.boost.org/trac10/ticket/7311#comment:1 https://svn.boost.org/trac10/ticket/7311#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> <li><strong>component</strong> <span class="trac-field-old">utility</span> → <span class="trac-field-new">result_of</span> </li> </ul> <p> You can use decltype-based <code>result_of</code> by defining <code>BOOST_RESULT_OF_USE_DECLTYPE</code>. Please see the <a href="http://www.boost.org/doc/libs/1_51_0/libs/utility/utility.htm#result_of">documentation</a>. </p> <p> Also note that, in the future release (i.e. Boost 1.52), decltype-based <code>result_of</code> will be automatically enabled on highly C++11-compliant compilers. Currently, clang-3.1 (in a C++11 mode) is the only such compiler. </p> Ticket