Boost C++ Libraries: Ticket #6828: functional/forward broken with decltype-based boost::result_of https://svn.boost.org/trac10/ticket/6828 <p> The clang c++11 test runner is showing failures with decltype-based result_of that do not happen with TR1-style result_of. See the results here (clang-cxx11 test runner): </p> <p> <a href="http://www.boost.org/development/tests/trunk/developer/functional-forward.html">http://www.boost.org/development/tests/trunk/developer/functional-forward.html</a> </p> <p> In particular: </p> <pre class="wiki">In file included from ../libs/functional/forward/test/forward_adapter.cpp:16: In file included from ../boost/functional/forward_adapter.hpp:21: In file included from ../boost/utility/result_of.hpp:113: In file included from ../boost/preprocessor/iteration/detail/iter/forward1.hpp:47: ../boost/utility/detail/result_of_iterate.hpp:66:5: error: no matching function for call to object of type 'const test_func&lt;boost::blank&gt;' boost::declval&lt;F&gt;()( ^~~~~~~~~~~~~~~~~~~ ../boost/utility/detail/result_of_iterate.hpp:47:7: note: in instantiation of template class 'boost::detail::cpp0x_result_of_impl&lt;const test_func&lt;boost::blank&gt; ()&gt;' requested here : mpl::if_&lt; ^ ../boost/functional/forward_adapter.hpp:150:36: note: in instantiation of template class 'boost::result_of&lt;const test_func&lt;boost::blank&gt; ()&gt;' requested here inline typename boost::result_of&lt; FC() &gt;::type ^ </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6828 Trac 1.4.3 Eric Niebler Tue, 01 May 2012 05:59:09 GMT attachment set https://svn.boost.org/trac10/ticket/6828 https://svn.boost.org/trac10/ticket/6828 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">forward_adaptor.patch</span> </li> </ul> <p> the following patch fixes the problem </p> Ticket Michel Morin Wed, 16 May 2012 12:03:40 GMT type changed https://svn.boost.org/trac10/ticket/6828#comment:1 https://svn.boost.org/trac10/ticket/6828#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> <p> Patch is attached by Eric Niebler. </p> Ticket