4 // Normally I would consider it rude to have a "using …" in a header
5 // file, but in this case the whole point is to conditionally define a
6 // short namespace that gives us a filesystem library.
8 #if __has_include(<filesystem>)
11 namespace fs
= std::filesystem
;
12 using std::error_code
;
15 #elif __has_include(<experimental/filesystem>)
18 #include <experimental/filesystem>
19 namespace fs
= std::experimental::filesystem
;
20 using std::error_code
;
24 #define BOOST_FILESYSTEM_NO_DEPRECATED
25 #include <boost/filesystem.hpp>
26 namespace fs
= boost::filesystem
;
27 using boost::system::error_code
;