C++17 introduces the std::filesystem library, which allows for platform agnostic filesystem directory walking. It is disappointingly limited in its approach to nonportable metadata, but if all you need to do is walk a directory recursively, get the paths, and open the files, it works great and can rid your code of #ifdefs.
C++17 introduces the
std::filesystem
library, which allows for platform agnostic filesystem directory walking. It is disappointingly limited in its approach to nonportable metadata, but if all you need to do is walk a directory recursively, get the paths, and open the files, it works great and can rid your code of#ifdef
s.