![]() |
Boost : |
From: Joaquin M López Muñoz (joaquinlopezmunoz_at_[hidden])
Date: 2025-05-21 18:11:05
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_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk