I was originally planing to do the move to C++11 later this year. But some people are getting overly excited about C++11 it seems and that is already causing problems. So lets get it out of the way now. But in an orderly way, please!
These are the steps we have to take:
1. Determine which minimum compiler versions we can except.
2. Determine a common subset of C++11 features for these compilers.
3. Adjust the compiler settings accordingly.
Starting with #1:
gcc: That would be 4.6, the version for the current Ubuntu/Mint LTS. Anything newer is out of question. Do we need to consider anything older for any Linux distribution?
MSVC: No idea? 2010? 2012?
CLang: No idea either.
C++11
Re: C++11
Unless it's changed in the last couple of days, Gentoo stable is on 4.5.4 (there've been quite a few reported problems with 4.6, which is why I assume they haven't updated yet). I haven't been having any problems building the code though, so I assume any C++11 that's snuck in is supported here.Zini wrote:gcc: That would be 4.6, the version for the current Ubuntu/Mint LTS. Anything newer is out of question. Do we need to consider anything older for any Linux distribution?
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: C++11
Current Ubuntu (12.10) GCC is 4.7.2 ...
Re: C++11
for clang i'd go with 3.0. debian stable is still at (ancient) 2.7 for some reason but they also have 3.0 in testing. ubuntu has 3.0 also in a couple older distros. arch is at 3.3 and i guess many of the clang users are compiling it themselves anyway...
Re: C++11
I think we mostly need input from the OS X guys for that.for clang i'd go with 3.0. debian stable is still at (ancient) 2.7 for some reason but they also have 3.0 in testing. ubuntu has 3.0 also in a couple older distros. arch is at 3.3 and i guess many of the clang users are compiling it themselves anyway...
From what I see 2008 has barely any support for C++11 at all (not surprising). If we need to provide support for 2008, we should drop C++11 completely. How important is 2008? Do we actually force any active or semi-active developer to change his tools by making 2010 the minimum?MSVC 2010 is the one that I see mostly used today, but having support for 2008 would probably be a good idea too.
- AngleBracket
- Posts: 32
- Joined: 01 Jan 2013, 02:53
Re: C++11
There's really no reason to support 2008, Visual C++ 2010 Express is freely available and is fine for the purposes of working on OpenMW. There's also the option of QtCreator with the MSVC 2010 toolchain if they don't like VS express.Ace (SWE) wrote:I would say that forcing new developers to use MSVC 2010 would be acceptable, but I'm sure there are people that disagree.
Re: C++11
Please think about the current debian stable: gcc 4:4.4.5-1
Altough since the next stable will be released soon, we may envisage gcc 4:4.7.2-1 (if you want to support debian stable of course)
Altough since the next stable will be released soon, we may envisage gcc 4:4.7.2-1 (if you want to support debian stable of course)