
El 21/05/2025 a las 16:07, Ivan Matek escribió:
On Wed, May 21, 2025 at 2:28 PM Joaquin M López Muñoz via Boost <boost@lists.boost.org> wrote:
You can see that X::foo is inlined while X::bar is not. This is the original reason why those member functions in candidate Boost.Bloom are added the "inline" bit, namely, to invite compilers to inline --though, admittedly, for very short functions this is hardly going to make a difference.
I see(that was one of my guesses :)), is there a reason to not use BOOST_FORCEINLINE there like you do in other places?
Basically I use BOOST_FORCEINLINE when I think I'll need to be more aggressive at asking the compiler to inline something. If the function in question is shorter I'm content with using standard inline. Joaquin M Lopez Munoz