Change to stl::filesystem from Boost::filesystem

Everything about development and the OpenMW source code.
User avatar
DecumusScotti
Posts: 39
Joined: 08 Jul 2016, 17:26

Re: Change to stl::filesystem from Boost::filesystem

Post by DecumusScotti » 05 Nov 2019, 21:52

I think it wasn't mentioned yet:

There's a bug in mingw (gcc for Windows) which renders std::filesystem unusable right now. I'm currently writing some code that has to be platform-independent, and while C++17 is allowed, I still can't use std::filesystem (or even C++14 with std::experimental/filesystem), because mingw has a bug that prevents it from compiling as soon as you include <filesystem> and do anything with it (e.g. any example from any cpp reference).

So while it would be great to switch, here's just one more reason why it's gotta wait.

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

Re: Change to stl::filesystem from Boost::filesystem

Post by AnyOldName3 » 06 Nov 2019, 00:24

Any support in OpenMW for MSYS/MINGW/CGYWIN/WSL is accidental and breaking it isn't a blocker for anything. It's nice to have if we can keep it, but it's not something we go out of our way to target.
AnyOldName3, Master of Shadows

User avatar
psi29a
Posts: 4662
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Change to stl::filesystem from Boost::filesystem

Post by psi29a » 06 Nov 2019, 14:14

According to:
https://sourceforge.net/p/mingw-w64/bugs/737/
https://stackoverflow.com/questions/523 ... windows-10

You should switch to using msys2, then you can use std::filesystem with mingw

Post Reply