[Boost-bugs] [Boost C++ Libraries] #9170: Make boost::addressof use BOOST_FORCEINLINE for better performance

Subject: [Boost-bugs] [Boost C++ Libraries] #9170: Make boost::addressof use BOOST_FORCEINLINE for better performance
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-27 17:17:20


#9170: Make boost::addressof use BOOST_FORCEINLINE for better performance
-------------------------------------+---------------------------
 Reporter: mgaunard | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: utility
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+---------------------------
 boost::addressof is used a lot to build expression templates or function
 objects which typically need to be inlined to get decent performance.

 Using BOOST_FORCEINLINE ensures that it does get inlined, even when
 minimal inlining options are used.

 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².

 See the attached patch.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9170>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC