Page 8 of 12

Re: C++11

Posted: 05 Jul 2014, 21:28
by Jyby
Can this be a 0.32.0 thing? We should move towards this.

Re: C++11

Posted: 06 Jul 2014, 08:37
by Zini
There is still no progress on the Linux side of things.

Re: C++11

Posted: 24 Aug 2014, 00:32
by EmperorArthur
Can confirm c++11 compiles on Debian jessie. gcc version 4.9.1 (Debian 4.9.1-4)

I have a patch for niffile.cpp waiting on c++11. It converts recordFactories into a std::map, and uses the find function instead of our current method of manual string compare until a match is found. The problem is the only way I could find to initialize the map was with a braced initializer list, which only works in c++11. :(

Re: C++11

Posted: 24 Aug 2014, 00:56
by Chris
EmperorArthur wrote:I have a patch for niffile.cpp waiting on c++11. It converts recordFactories into a std::map, and uses the find function instead of our current method of manual string compare until a match is found. The problem is the only way I could find to initialize the map was with a braced initializer list, which only works in c++11. :(
You can also use a function to initialize it. Like this:
https://github.com/OpenMW/openmw/blob/m ... n.cpp#L139

Re: C++11

Posted: 20 Jun 2015, 09:34
by sirherrbatka
*cough* *cough*

Can someone remind me what is holding us from using C++11?

Re: C++11

Posted: 20 Jun 2015, 10:41
by Zini
Not much. But don't want to change too many things at the same time. We will move to C++11 after the OSG port is done.

Re: C++11

Posted: 20 Jun 2015, 13:55
by sirherrbatka
That makes sense. Thanks for answer.

Re: C++11

Posted: 06 Jul 2015, 13:18
by Zini
Started to look into the C++11 transition again.

I found a section the cmake scripts that checks for g++ 4.6 or newer. I presume that is just a leftover. Or does anyone still uses a g++ older than 4.6? That would seriously limit our options.

Also, what is the oldest version of boost we still need to support? Anything older than 1.51 still in use?

Re: C++11

Posted: 06 Jul 2015, 13:28
by psi29a
Zini wrote:Also, what is the oldest version of boost we still need to support? Anything older than 1.51 still in use?
Well... because travis-ci requires precise, we're still using its default boost libraries.

- Boost version: 1.46.1

-- The CXX compiler identification is GNU 4.6.3
-- The C compiler identification is GNU 4.6.3

Re: C++11

Posted: 07 Jul 2015, 08:36
by Zini
No problem. I can deal with the boost issue. I guess no one depends on anything older? Then I can as well throw out the check for 4.6.