Subject: [Boost-bugs] [Boost C++ Libraries] #12065: Boost program options throws an exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-12 20:21:58
#12065: Boost program options throws an exception
-----------------------------------------------+---------------------------
Reporter: Thomas Milotti <thomas.milotti@â¦> | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component:
Version: Boost 1.59.0 | program_options
Keywords: program options throws | Severity: Problem
-----------------------------------------------+---------------------------
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
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12065> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC