[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Comparing KFileItems
From: Michael Pyne <mpyne () kde ! org>
Date: 2012-10-26 21:04:33
Message-ID: 3779524.zvZ5V11APo () midna
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic