aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/examples/boost/foo.cpp
blob: 6219e68951d0835dd634c8978728518b60eeddb9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                               
                                  





                                                                            

             
#include <boost/filesystem.hpp>

#include <iostream>

int main(int argc, char* argv[]) {
    namespace fs = boost::filesystem;
    std::cout << argv[0] << '\n';
    for (int i = 1; i < argc; ++i) {
        std::cout << fs::absolute(boost::filesystem::path{argv[i]}).string()
                  << '\n';
    }
    return 0;
}