[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Comparing KFileItems
From: David Faure <faure () kde ! org>
Date: 2012-10-30 11:07:16
Message-ID: 3965199.GaHYPKB9PV () asterix ! site
[Download RAW message or body]
On Friday 26 October 2012 17:04:33 Michael Pyne wrote:
> 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.
Oh OK, that sounds complicated for not much gain, you're right to have skipped
this.
> 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.
Might --- or might not :-)
--
David Faure, faure@kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic