Boost C++ Libraries: Ticket #9170: Make boost::addressof use BOOST_FORCEINLINE for better performance https://svn.boost.org/trac10/ticket/9170 <p> boost::addressof is used a lot to build expression templates or function objects which typically need to be inlined to get decent performance. </p> <p> Using BOOST_FORCEINLINE ensures that it does get inlined, even when minimal inlining options are used. </p> <p> It is very important to do this to get acceptable performance in debug for some the of the libraries I work on, like Boost.SIMD or NT². </p> <p> See the attached patch. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9170 Trac 1.4.3 Mathias Gaunard Fri, 27 Sep 2013 17:17:54 GMT attachment set https://svn.boost.org/trac10/ticket/9170 https://svn.boost.org/trac10/ticket/9170 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_addressof_forceinline.diff</span> </li> </ul> <p> patch to add BOOST_FORCEINLINE to critical boost::addressof functions </p> Ticket Joel Falcou Tue, 01 Oct 2013 15:05:40 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9170#comment:1 https://svn.boost.org/trac10/ticket/9170#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86125" title="Fix #9170 - Add BOOST_FORCEINLINE in address_of for performance issues ">[86125]</a>) Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9170" title="#9170: Bugs: Make boost::addressof use BOOST_FORCEINLINE for better performance (closed: fixed)">#9170</a> - Add BOOST_FORCEINLINE in address_of for performance issues </p> Ticket