diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/boost/foo.cpp | 10 | ||||
-rw-r--r-- | examples/dynamic/foo.cpp | 3 | ||||
-rw-r--r-- | examples/static/foo.cpp | 3 |
3 files changed, 12 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; } diff --git a/examples/dynamic/foo.cpp b/examples/dynamic/foo.cpp index b7d9986..7e928e1 100644 --- a/examples/dynamic/foo.cpp +++ b/examples/dynamic/foo.cpp @@ -1,6 +1,9 @@ #include <baz.hpp> +#include <iostream> + int main() { + std::cout << "foo\n"; baz(); return 0; } diff --git a/examples/static/foo.cpp b/examples/static/foo.cpp index c6355a2..34cd82e 100644 --- a/examples/static/foo.cpp +++ b/examples/static/foo.cpp @@ -1,6 +1,9 @@ #include <bar.hpp> +#include <iostream> + int main() { + std::cout << "foo\n"; bar(); return 0; } |