Hi

>I see. It didn't occur to me to declare it inline, as I only ever use
>the keyword to satisfy
>ODR requirements. E.g. the non-member swap isn't declared inline
>either.
>
>For future reference, is there a rule of thumb in use?

In general we are very careful with code bloat, but free functions which just 
forward to other functions should be definiyely inline, otherwise typically at 
widely used optimization levels like -O2 users get suboptimal performance for 
no reason. But please feel free to experiment and report your findings on the 
mailing list!

Paolo



Reply via email to