Ticket #3603: any_warning.cpp

File any_warning.cpp, 378 bytes (added by Sascha Ochsenknecht, 13 years ago)

test case

Line 
1#include <iostream>
2using namespace std;
3
4#include <boost/program_options.hpp>
5using namespace boost::program_options;
6
7int main(int argc, char** argv) {
8
9 int x = 0;
10 options_description desc("");
11 desc.add_options()("x,x", value<int>(&x)->default_value(2), "x");
12
13 variables_map vm;
14 store(parse_command_line(argc, argv, desc), vm);
15 notify(vm);
16 return 0;
17}