Commit 95e0e0742e uses a C++0x feature and breaks compilation with gcc < 4.5

Lambert CLARA lambert.clara at yahoo.fr
Wed Oct 26 17:58:01 UTC 2011


Done, thanks !

L

On mercredi 26 octobre 2011 19:23:43 Alexander Dymo wrote:
> > Lambert CLARA, 26.10.2011:
> >> It seems that in the method MainWindowPrivate::slotDockShown of
> >> mainwindow_p.cpp, declaring the local struct ShownToolViewFinder and use
> >> it as argument of walkToolViews is only possible in C++0x and since gcc
> >> 4.5.
> >>
> >> If we want to keep the compatibility with old gcc (mine is 4.4.5),  
> >> and/or
> >> limit the use of C++0x in kdevelop source code, a simple dirty fix would
> >> be to move the struct definition just above the function.
> >
> > just move it out of the function into the global .cpp space
> 
> That wasn't intentional, I didn't know I know C++0x :) Yeah, just do that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20111026/8a7de0e4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20111026/8a7de0e4/attachment.sig>


More information about the KDevelop-devel mailing list