]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/graph/example/boost_web_graph.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / graph / example / boost_web_graph.cpp
index 53da8263efc1ec49ec11f2b150090e618f537596..04ef2187fae2088cd54ccf5c7e77a9c31e315881 100644 (file)
@@ -70,11 +70,11 @@ private:
 };
 
 int
-main()
+main(int argc, const char** argv)
 {
   using namespace boost;
 
-  std::ifstream datafile("./boost_web.dat");
+  std::ifstream datafile(argc >= 2 ? argv[1] : "./boost_web.dat");
   if (!datafile) {
     std::cerr << "No ./boost_web.dat file" << std::endl;
     return -1;