aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/boost/foo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/boost/foo.cpp')
-rw-r--r--examples/boost/foo.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/boost/foo.cpp b/examples/boost/foo.cpp
index 3bd0326..6219e68 100644
--- a/examples/boost/foo.cpp
+++ b/examples/boost/foo.cpp
@@ -3,9 +3,11 @@
#include <iostream>
int main(int argc, char* argv[]) {
- std::cout << "Hello from "
- << boost::filesystem::absolute(boost::filesystem::path{argv[0]})
- .string()
- << "!\n";
+ 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;
}