Comparing KFileItems
Michael Pyne
mpyne at kde.org
Fri Oct 26 22:04:33 BST 2012
On Friday, October 26, 2012 10:16:50 Frank Reininghaus wrote:
> > I was thinking the first one, but indeed Qt often does the second one,
> > I'm not sure what the difference really is. Either one is fine with me.
>
> in the end, I did not inline the function - before I pushed the
> commit, I wondered whether making a non-inline function inline is
> guaranteed to be binary compatible. According to Techbase, it's not:
>
> http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++#The_Do
> .27s_and_Don.27ts
More specifically, the non-inlined version needs to exist. The compiler is
still within its rights to actually inline the code if possible (unless you
mark it as no_inline, which takes extra effort on your part).
Or in other words, the compiler might do the right thing for you regardless.
Regards,
- Michael Pyne
More information about the kde-core-devel
mailing list