Ticket #6527: bug

File bug, 349 bytes (added by Ryan Scott Davis <rsdavis@…>, 11 years ago)

minimal, complete example

Line 
1
2#include <boost/program_options.hpp>
3namespace po = boost::program_options;
4
5int 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}