Opened 7 years ago

#12065 new Bugs

Boost program options throws an exception

Reported by: Thomas Milotti <thomas.milotti@…> Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.59.0 Severity: Problem
Keywords: program options throws Cc:

Description

Linux 3.19.0-51-generic #58-Ubuntu SMP Fri Feb 26 21:22:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Ubuntu 15.04

Boost 1.59

po::options_description desc("Allowed options"); desc.add_options()

("help,h", "produce help message") ("query,", po::value<std::string>(), "query for the search in the index") ("out,", po::value<std::string>(), "output file for commits parsing")

;

po::positional_options_description p; p.add("verb", -1);

po::variables_map vm; po::store(po::command_line_parser(ac, av).

options(desc).positional(p).run(), vm);

po::notify(vm);

This snippet will throw an exception in the line options(desc).positional(p).run(), vm);

This code works well with boost_1.55

Change History (0)

Note: See TracTickets for help on using tickets.