Boost C++ Libraries: Ticket #7754: Allow result_of to fall back on decltype https://svn.boost.org/trac10/ticket/7754 <p> result_of uses decltype by default on very few compilers, since most current compilers' decltype support doesn't work for some TR1-style usage. </p> <p> 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. </p> <p> 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. </p> <p> It also contains tests &amp; doc changes. Compiled with VC10, clang++3.1 &amp; g++4.5 (both compilers with and without -std=c++0x). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7754 Trac 1.4.3 nathan.crookston+boost@… Sat, 01 Dec 2012 09:54:54 GMT <link>https://svn.boost.org/trac10/ticket/7754#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7754#comment:1</guid> <description> <p> Oops, sorry for the duplicate -- it's rejecting my patch as it has a URL, and the captcha seems to not be working. . . please close when able. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Michel Morin</dc:creator> <pubDate>Sat, 01 Dec 2012 10:13:43 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7754#comment:2 https://svn.boost.org/trac10/ticket/7754#comment:2 <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">duplicate</span> </li> </ul> <p> Dupe of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7753" title="#7753: Feature Requests: Allow result_of to fall back on decltype (closed: fixed)">#7753</a> </p> Ticket