C++ 17

Everything about development and the OpenMW source code.
User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

C++ 17

Post by psi29a » 24 Oct 2017, 13:17

One of the things to look out for is this:
https://www.phoronix.com/scan.php?page= ... -System-TS
ISO/IEC TS 18822:2015 defines a set of standard interfaces for C++ for dealing with file-system operations. This TS, which is based upon the Boost library's file-system implementation, is optional in C++17 and is now supported by the GCC C++ compiler.

The C++ file-system library introduces the concept of paths, directory entries, file information, easy copying of files, symlink handling, file renaming, checking of file types, and other easy helpers.
This would help us ditch even more Boost and I hope that we an aim to target this when gcc, clang and msvc mature...

Chris
Posts: 1299
Joined: 04 Sep 2011, 08:33

Re: C++ 17

Post by Chris » 24 Oct 2017, 14:54

I doubt we'll be using C++17 any time soon, considering we don't even use C++14 and only recently started using C++11. It'd be nice if we could start using C++14, though we'd almost certainly have to drop MSVC 2013 support for that.

User avatar
Ace (SWE)
Posts: 750
Joined: 15 Aug 2011, 14:56

Re: C++ 17

Post by Ace (SWE) » 24 Oct 2017, 17:36

I'd be all for dropping VS2013 support soon, keeping official support to the two latest stable versions should hopefully be enough for people. Even if it means probably losing Windows XP support.

But yes, let's move to C++14 before we try to aim for 17.

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: C++ 17

Post by psi29a » 24 Oct 2017, 18:28

I'm game... :twisted:

User avatar
lysol
Posts: 726
Joined: 26 Mar 2013, 01:48
Location: Sweden

Re: C++ 17

Post by lysol » 24 Oct 2017, 19:34

Ace (SWE) wrote:
24 Oct 2017, 17:36
Even if it means probably losing Windows XP support.
There will of course be people against this, but seriously. We need to let that OS die.
Normal mapped texture replacers, exclusive for OpenMW:
My Nexus page

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: C++ 17

Post by psi29a » 24 Oct 2017, 19:51

Let's get this party started right...

https://github.com/OpenMW/openmw/pull/1520

Sorry, XP is dead along with Vista... Microsoft said so. Done and done.

User avatar
AnyOldName3
Posts: 566
Joined: 26 Nov 2015, 03:25

Re: C++ 17

Post by AnyOldName3 » 24 Oct 2017, 20:03

lysol wrote:
24 Oct 2017, 19:34
Ace (SWE) wrote:
24 Oct 2017, 17:36
Even if it means probably losing Windows XP support.
There will of course be people against this, but seriously. We need to let that OS die.
And probably its users. If they're so keen to let their computers get viruses, then they're probably a massive risk to public health and need quarantining and burning lest they kill us all. 😜

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: C++ 17

Post by psi29a » 24 Oct 2017, 20:24

Right, so how do we flip the switch for MSVC?

User avatar
Ace (SWE)
Posts: 750
Joined: 15 Aug 2011, 14:56

Re: C++ 17

Post by Ace (SWE) » 24 Oct 2017, 21:05

MSVC always builds with the latest supported C++ version, so there's no switch to flip on there. It's just a case of starting to push C++14 code.

You know that you've reached c++14 territory (Or just full C++11 territory) once MSVC2013 builds start failing, at which point it's probably best to update the appveyor config to build with 2015 and 2017 instead

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: C++ 17

Post by psi29a » 24 Oct 2017, 21:07

OK, so I don't need to do anything until someone does something >= C++14-ish

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests