Fix build.
authorCarl Hetherington <cth@carlh.net>
Tue, 3 Feb 2015 11:02:07 +0000 (11:02 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 3 Feb 2015 11:02:07 +0000 (11:02 +0000)
tools/dcpdiff.cc

index 30c09f872ee352deea99b28e0f88ccc21c7d448b..c2a454cf1b81d4d735f3e4aaab05cdf0cb4a36c7 100644 (file)
 #include "common.h"
 #include "mxf.h"
 #include <getopt.h>
+#include <boost/optional.hpp>
+#include <boost/shared_ptr.hpp>
 #include <boost/filesystem.hpp>
 #include <iostream>
-
-using namespace std;
-using namespace boost;
+#include <list>
+
+using std::list;
+using std::cerr;
+using std::cout;
+using std::string;
+using boost::shared_ptr;
+using boost::optional;
+using boost::dynamic_pointer_cast;
 using namespace dcp;
 
 static bool verbose = false;
@@ -81,7 +89,7 @@ load_dcp (boost::filesystem::path path, bool keep_going, bool ignore_missing_ass
                                }
                        }
                }
-               
+
        } catch (FileError& e) {
                cerr << "Could not read DCP " << path.string() << "; " << e.what() << " " << e.filename() << "\n";
                exit (EXIT_FAILURE);
@@ -164,12 +172,12 @@ main (int argc, char* argv[])
                exit (EXIT_FAILURE);
        }
 
-       if (!filesystem::exists (argv[optind])) {
+       if (!boost::filesystem::exists (argv[optind])) {
                cerr << argv[0] << ": DCP " << argv[optind] << " not found.\n";
                exit (EXIT_FAILURE);
        }
 
-       if (!filesystem::exists (argv[optind + 1])) {
+       if (!boost::filesystem::exists (argv[optind + 1])) {
                cerr << argv[0] << ": DCP " << argv[optind + 1] << " not found.\n";
                exit (EXIT_FAILURE);
        }