Boost C++ Libraries: Ticket #10311: addressof and Solaris Studio compiler https://svn.boost.org/trac10/ticket/10311 <p> This is a request to extend resolution to Ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7079" title="#7079: Bugs: addressof a boost::function and SolarisStudio compiler (closed: fixed)">#7079</a>; recent version (5.13) of Oracle Solaris Studio compiler handles overloading better and workaround confuses it. Also, this solution makes recent compiler pass libs/utility/addressof_test2.cpp test. </p> <pre class="wiki">$ diff -C4 boost/utility/addressof.hpp.old boost/utility/addressof.hpp *** boost/utility/addressof.hpp.old Mon Aug 4 19:21:05 2014 --- boost/utility/addressof.hpp Mon Aug 4 19:27:46 2014 *************** *** 49,57 **** } // namespace detail template&lt;class T&gt; T * addressof( T &amp; v ) { ! #if (defined( __BORLANDC__ ) &amp;&amp; BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x610 ) ) ) || defined( __SUNPRO_CC ) return boost::detail::addressof_impl&lt;T&gt;::f( v, 0 ); #else --- 49,57 ---- } // namespace detail template&lt;class T&gt; T * addressof( T &amp; v ) { ! #if (defined( __BORLANDC__ ) &amp;&amp; BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x610 ) ) ) || (defined(__SUNPRO_CC) &amp;&amp; (__SUNPRO_CC &lt;= 0x5120)) return boost::detail::addressof_impl&lt;T&gt;::f( v, 0 ); #else </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10311 Trac 1.4.3 Andrey Semashev Sat, 08 Jul 2017 20:24:19 GMT cc, owner, status, component changed; resolution set https://svn.boost.org/trac10/ticket/10311#comment:1 https://svn.boost.org/trac10/ticket/10311#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">Andrey Semashev</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">Peter Dimov</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>component</strong> <span class="trac-field-old">utility</span> → <span class="trac-field-new">core</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> There have been lots of changes to <code>addressof</code> in later releases, and possibly the issue was fixed. I'm closing this ticket for now. Please, reopen if the issue is still present with Boost 1.64 or later. </p> Ticket