Colobot Forum - International Colobot Community
Drop GCC 4.6 support - Printable Version

+- Colobot Forum - International Colobot Community (https://colobot.info/forum)
+-- Forum: [Archive] New forum (2015-2019) (https://colobot.info/forum/forumdisplay.php?fid=76)
+--- Forum: Colobot: Gold Edition Development (https://colobot.info/forum/forumdisplay.php?fid=62)
+---- Forum: Game Engine & General Talk (https://colobot.info/forum/forumdisplay.php?fid=63)
+---- Thread: Drop GCC 4.6 support (/showthread.php?tid=627)



Drop GCC 4.6 support - piotrdz - 06-24-2015

In my latest commits, I broke the GCC 4.6 build on Travis. The problem is that I've used non-static member initialization "class X { int x = 12; }" and the new C++11 using alias ("using Alias = Type;").

I find that both features are nice to have in our code and I feel that we should be gradually moving on to proper C++11 support, not to mention C++14. Right now we have to do weird things to get Colobot to compile under GCC 4.6, 4.7 and of course MSVC 2013 which is even more lacking in some ways when it comes to C++11.

I would therefore propose to drop GCC 4.6 which is now more than 4 years old. GCC 4.7 was released in 2012, and I think that pretty much any recent Linux distribution has at least GCC 4.7 so I don't think it will be a problem for any of our users.


RE: Drop GCC 4.6 support - tomangelo - 06-24-2015

Are there any arguments to keep support for GCC 4.6? There is GCC 4.7, 4.8 and 4.9, so I don't think that supporting 4.6 is really necessary.


RE: Drop GCC 4.6 support - tomaszkax86 - 06-25-2015

We should definitely strive towards refactoring to proper C++11 code. Just make sure we can compile on some of the most recent versions of GCC and MSVC.


RE: Drop GCC 4.6 support - piotrdz - 06-25-2015

All right, since we all agreed on it, I've disabled GCC 4.6 support and the GCC build on Travis.