]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/graph/example/default-constructor.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / graph / example / default-constructor.cpp
index 9d9f41a2dd1eb7797c2904084bb5925aeadc08b1..00e1298cd978d458da56297f09fe503f4a7b17f3 100644 (file)
@@ -29,7 +29,7 @@ read_graph_file(std::istream & in, Graph & g)
 
 
 int
-main()
+main(int argc, const char** argv)
 {
   typedef adjacency_list < listS,       // Store out-edges of each vertex in a std::list
     vecS,                       // Store vertex set in a std::vector
@@ -37,7 +37,7 @@ main()
   > graph_type;
 
   graph_type g;                 // use default constructor to create empty graph
-  std::ifstream file_in("makefile-dependencies.dat");
+  std::ifstream file_in(argc >= 2 ? argv[1] : "makefile-dependencies.dat");
   read_graph_file(file_in, g);
 
   assert(num_vertices(g) == 15);