Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:19:26

0001 // Check that trivial use of <filesystem> works
0002 // - https://en.cppreference.com/w/cpp/filesystem
0003 #include <iostream>
0004 #if __has_include( <filesystem>)
0005 #  include <filesystem>
0006 namespace fs = std::filesystem;
0007 #elif __has_include( <experimental/filesystem>)
0008 #  include <experimental/filesystem>
0009 namespace fs = std::experimental::filesystem;
0010 #endif
0011 
0012 int main( int argc, char* argv[] ) {
0013   fs::path p{ argv[0] };
0014   std::cout << p << ", " << fs::canonical( p ) << std::endl;
0015 }