Ticket #6527: bug
File bug, 349 bytes (added by , 11 years ago) |
---|
Line | |
---|---|
1 | |
2 | #include <boost/program_options.hpp> |
3 | namespace po = boost::program_options; |
4 | |
5 | int main(int argc, char **argv) |
6 | { |
7 | |
8 | int a; |
9 | |
10 | po::options_description desc(""); |
11 | desc.add_options() |
12 | ("opt", po::value<int>(&a), ""); |
13 | |
14 | po::variables_map vm; |
15 | po::store(po::parse_command_line(argc,argv,desc),vm); |
16 | po::notify(vm); |
17 | |
18 | return 0; |
19 | } |