Make option_groups.cpp compile.

This commit is contained in:
Vladimir Prus 2015-02-15 21:41:48 +03:00
parent 0c01e9aadc
commit 0f9793e369

View File

@ -29,9 +29,9 @@ using namespace boost::program_options;
#include <iostream>
#include <fstream>
#include <exception>
using namespace std;
int main(int ac, char* av[])
{
try {
@ -39,7 +39,7 @@ int main(int ac, char* av[])
options_description general("General options");
general.add_options()
("help", "produce a help message")
("help-module", value<string>()->implicit(),
("help-module", value<string>(),
"produce a help for a given module")
("version", "output the version number")
;
@ -91,7 +91,7 @@ int main(int ac, char* av[])
<< vm["num-threads"].as<int>() << "\n";
}
}
catch(exception& e) {
catch(std::exception& e) {
cout << e.what() << "\n";
}
}