biotracker_core icon indicating copy to clipboard operation
biotracker_core copied to clipboard

Replace boost fs with native fs

Open jutanke opened this issue 10 years ago • 7 comments

To remove dependencies

jutanke avatar Nov 24 '15 10:11 jutanke

see #25

nebw avatar Nov 24 '15 10:11 nebw

we have to determine the required gcc/clang/msvc versions for c++14 filesystem support.

nebw avatar Nov 24 '15 11:11 nebw

msvc implemented filesystem in 2015

nebw avatar Nov 24 '15 11:11 nebw

As far as I can tell we are only using filesystem, optional, ...? std is having those as well. Having it build with MSCV 2017 would be nowadays.

hmoenck avatar Sep 19 '17 13:09 hmoenck

std::filesystem is a C++17 feature

nebw avatar Sep 19 '17 13:09 nebw

Talk to you again in 3 years or replace filesystem by some manual approach? I forgot we've been talking about this being a 17 feature...

hmoenck avatar Sep 19 '17 13:09 hmoenck

#include <experimental/filesystem> // C++-standard header file name  
#include <filesystem> // Microsoft-specific implementation header file name  
using namespace std::experimental::filesystem::v1;  

If you don't mind this somewhat ugly include block, you can use std::filesystem with MSVC >= 2015.

https://msdn.microsoft.com/en-us/library/hh874694.aspx

nebw avatar Sep 19 '17 14:09 nebw