]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/filesystem/example/tut1.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / filesystem / example / tut1.cpp
1 // filesystem tut1.cpp ---------------------------------------------------------------//
2
3 // Copyright Beman Dawes 2009
4
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
7
8 // Library home page: http://www.boost.org/libs/filesystem
9
10 #include <iostream>
11 #include <boost/filesystem.hpp>
12
13 using namespace boost::filesystem;
14
15 int main(int argc, char* argv[])
16 {
17 if (argc < 2)
18 {
19 std::cout << "Usage: tut1 path\n";
20 return 1;
21 }
22 std::cout << argv[1] << " " << file_size(argv[1]) << '\n';
23 return 0;
24 }