diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-24 11:40:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-24 14:28:32 +0100 |
| commit | 1a693725f9a8cc6ba58f65b2f1ef03255d295f23 (patch) | |
| tree | 91596f7800dcc02103c90f8f19c763f45281603e /src/tools/server_test.cc | |
| parent | a03e9a98ed667eb44c9dfbbeaf6da57f44992914 (diff) | |
Basic template support (#485).
Diffstat (limited to 'src/tools/server_test.cc')
| -rw-r--r-- | src/tools/server_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/server_test.cc b/src/tools/server_test.cc index 5e50df227..cb3d49f31 100644 --- a/src/tools/server_test.cc +++ b/src/tools/server_test.cc @@ -41,6 +41,7 @@ using std::cerr; using std::string; using std::pair; using boost::shared_ptr; +using boost::optional; using dcp::Data; static shared_ptr<Film> film; @@ -101,7 +102,7 @@ help (string n) int main (int argc, char* argv[]) { - string film_dir; + boost::filesystem::path film_dir; string server_host; while (true) { @@ -132,7 +133,7 @@ main (int argc, char* argv[]) } } - if (server_host.empty() || film_dir.empty()) { + if (server_host.empty() || film_dir.string().empty()) { help (argv[0]); exit (EXIT_FAILURE); } |
