Skip to content

Commit 0f9793e

Browse files
committed
Make option_groups.cpp compile.
1 parent 0c01e9a commit 0f9793e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/option_groups.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ using namespace boost::program_options;
2929

3030
#include <iostream>
3131
#include <fstream>
32+
#include <exception>
3233
using namespace std;
3334

34-
3535
int main(int ac, char* av[])
3636
{
3737
try {
3838
// Declare three groups of options.
3939
options_description general("General options");
4040
general.add_options()
4141
("help", "produce a help message")
42-
("help-module", value<string>()->implicit(),
42+
("help-module", value<string>(),
4343
"produce a help for a given module")
4444
("version", "output the version number")
4545
;
@@ -91,7 +91,7 @@ int main(int ac, char* av[])
9191
<< vm["num-threads"].as<int>() << "\n";
9292
}
9393
}
94-
catch(exception& e) {
94+
catch(std::exception& e) {
9595
cout << e.what() << "\n";
9696
}
9797
}

0 commit comments

Comments
 (0)