Review Request 122758: [OS X] work around missing Q_COMPILER_INITIALIZER_LISTS

Kevin Funk kfunk at kde.org
Tue Jan 3 01:11:25 UTC 2017



> On Dec. 13, 2016, 3:27 p.m., Kevin Funk wrote:
> > Still confused about this patch... 
> > 
> > > OS X lacks (full) support for compiler initialiser lists, i.e. Q_COMPILER_INITIALIZER_LISTS is not defined
> > 
> > Where's the upstream bug report for this? Hasn't this been fixed? Did you actually retest this patch -- is it still needed?
> 
> René J.V. Bertin wrote:
>     I hadn't yet had the time to retest, only to note that the patch still applied.
>     
>     It doesn't appear to be necessary anymore with my current set-up. Annoyingly I don't appear to have kept a trace of when I first figured out this patch. I do recall googling the error message I got and realising there was little to do about it.
>     
>     The date on this RR and my local copy of the patchfile don't correspond, but it is very well possible that this is an issue on earlier OS X versions than 10.9, where C++11 support is incomplete. That means 10.8 and earlier, and there are still people locked in to those versions.
>     
>     It wouldn't be an issue to keep this patch in MacPorts, if you prefer that.

> The date on this RR and my local copy of the patchfile don't correspond, but it is very well possible that this is an issue on earlier OS X versions than 10.9, where C++11 support is incomplete. That means 10.8 and earlier, and there are still people locked in to those versions.

> It wouldn't be an issue to keep this patch in MacPorts, if you prefer that.

Please do so then, I don't think we want to keep `#ifdef`s around for guarding against the simplest C++11 features...

We require the full set of C++11 support everywhere in KDevelop land, since some time now.


- Kevin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122758/#review101416
-----------------------------------------------------------


On Dec. 13, 2016, 2:44 p.m., René J.V. Bertin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122758/
> -----------------------------------------------------------
> 
> (Updated Dec. 13, 2016, 2:44 p.m.)
> 
> 
> Review request for KDE Software on Mac OS X and KDevelop.
> 
> 
> Repository: kdev-python
> 
> 
> Description
> -------
> 
> OS X lacks (full) support for compiler initialiser lists, i.e. Q_COMPILER_INITIALIZER_LISTS is not defined. As a result, several expressions used in kdev-python C++ code fail to compile.
> 
> This patch presents a workaround. I have used dynamically allocated class instances where an initialiser list is returned from a function, to avoid returning references to out-of-scope objects.
> 
> Please correct me if there are better ways, or if that means the objects have to deleted explicitly by the caller in order to prevent memory leaks.
> 
> 
> Diffs
> -----
> 
>   pythonlanguagesupport.cpp d8a720f 
> 
> Diff: https://git.reviewboard.kde.org/r/122758/diff/
> 
> 
> Testing
> -------
> 
> On OS X/MacPorts with KDE libs 4.14.5 and KDevelop 4.7.1 .
> 
> 
> Thanks,
> 
> René J.V. Bertin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20170103/463e5886/attachment.html>


More information about the kde-mac mailing list